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