added old style auto loader setup in addition to composer.
This commit is contained in:
parent
b53e6cd02e
commit
b03521fabc
|
@ -140,6 +140,7 @@
|
|||
'Auth' => 'Illuminate\Support\Facades\Auth',
|
||||
'Blade' => 'Illuminate\Support\Facades\Blade',
|
||||
'Cache' => 'Illuminate\Support\Facades\Cache',
|
||||
'ClassLoader' => 'Illuminate\Foundation\ClassLoader',
|
||||
'Config' => 'Illuminate\Support\Facades\Config',
|
||||
'Controller' => 'Illuminate\Routing\Controllers\Controller',
|
||||
'Cookie' => 'Illuminate\Support\Facades\Cookie',
|
||||
|
|
|
@ -1,5 +1,23 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register The Laravel Class Loader
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| In addition to using Composer, you may use the Laravel class loader to
|
||||
| load your controllers and models. This is useful for keeping all of
|
||||
| your classes in the "global" namespace without Composer updating.
|
||||
|
|
||||
*/
|
||||
|
||||
ClassLoader::register(new ClassLoader(array(
|
||||
|
||||
app_path().'/controllers',
|
||||
app_path().'/models',
|
||||
|
||||
)));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Error Logger
|
||||
|
|
Loading…
Reference in New Issue