Fixed order of session loading and auto-loader mappings in app start.
This commit is contained in:
@@ -47,6 +47,37 @@ $aliases = Laravel\Config::get('application.aliases');
|
|||||||
|
|
||||||
Laravel\Autoloader::$aliases = $aliases;
|
Laravel\Autoloader::$aliases = $aliases;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Auto-Loader Mappings
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Registering a mapping couldn't be easier. Just pass an array of class
|
||||||
|
| to path maps into the "map" function of Autoloader. Then, when you
|
||||||
|
| want to use that class, just use it. It's simple!
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
Autoloader::map(array(
|
||||||
|
'Base_Controller' => path('app').'controllers/base.php',
|
||||||
|
));
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Auto-Loader Directories
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The Laravel auto-loader can search directories for files using the PSR-0
|
||||||
|
| naming convention. This convention basically organizes classes by using
|
||||||
|
| the class namespace to indicate the directory structure.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
Autoloader::directories(array(
|
||||||
|
path('app').'models',
|
||||||
|
path('app').'libraries',
|
||||||
|
));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Laravel View Loader
|
| Laravel View Loader
|
||||||
@@ -111,34 +142,3 @@ if ( ! Request::cli() and Config::get('session.driver') !== '')
|
|||||||
{
|
{
|
||||||
Session::load();
|
Session::load();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Auto-Loader Mappings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Registering a mapping couldn't be easier. Just pass an array of class
|
|
||||||
| to path maps into the "map" function of Autoloader. Then, when you
|
|
||||||
| want to use that class, just use it. It's simple!
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
Autoloader::map(array(
|
|
||||||
'Base_Controller' => path('app').'controllers/base.php',
|
|
||||||
));
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Auto-Loader Directories
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| The Laravel auto-loader can search directories for files using the PSR-0
|
|
||||||
| naming convention. This convention basically organizes classes by using
|
|
||||||
| the class namespace to indicate the directory structure.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
Autoloader::directories(array(
|
|
||||||
path('app').'models',
|
|
||||||
path('app').'libraries',
|
|
||||||
));
|
|
||||||
Reference in New Issue
Block a user