Composers should not be loaded every time a new view is created.
This commit is contained in:
@@ -183,6 +183,8 @@ class View {
|
||||
*/
|
||||
protected static function composers()
|
||||
{
|
||||
if ( ! is_null(static::$composers)) return;
|
||||
|
||||
static::$composers = require APP_PATH.'composers'.EXT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user