Composers should not be loaded every time a new view is created.

This commit is contained in:
Taylor Otwell 2011-11-30 10:54:51 -06:00
parent 80063bbf47
commit 5b7a462131
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}