remove composers from ioc container. remove comment bloat from autoloader.
This commit is contained in:
parent
0fd88b67f2
commit
56daba42c5
|
@ -64,10 +64,6 @@ protected static function find($class)
|
|||
// If the namespace has been registered as a PSR-0 compliant library, we will
|
||||
// load the library according to the PSR-0 naming standards, which state that
|
||||
// namespaces and underscores indicate the directory hierarchy of the class.
|
||||
//
|
||||
// The PSR-0 standard is exactly like the typical Laravel standard, the only
|
||||
// difference being that Laravel files are all lowercase, while PSR-0 states
|
||||
// that the file name should match the class name.
|
||||
if (isset(static::$libraries[$library]))
|
||||
{
|
||||
return str_replace('_', '/', $file).EXT;
|
||||
|
|
|
@ -2,12 +2,6 @@
|
|||
|
||||
return array(
|
||||
|
||||
'laravel.view.composers' => array('singleton' => true, 'resolver' => function()
|
||||
{
|
||||
return require APP_PATH.'composers'.EXT;
|
||||
}),
|
||||
|
||||
|
||||
'laravel.routing.router' => array('singleton' => true, 'resolver' => function($c)
|
||||
{
|
||||
return new Routing\Router($c->core('routing.loader'), CONTROLLER_PATH);
|
||||
|
|
|
@ -193,7 +193,7 @@ protected static function compose(View $view)
|
|||
*/
|
||||
protected static function composers()
|
||||
{
|
||||
static::$composers = IoC::container()->core('view.composers');
|
||||
static::$composers = require APP_PATH.'composers'.EXT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue