mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Merge branch 'develop' of github.com:laravel/laravel into develop
This commit is contained in:
commit
7e81f9de94
@ -142,7 +142,7 @@ return array(
|
||||
'Auth' => 'Illuminate\Support\Facades\Auth',
|
||||
'Blade' => 'Illuminate\Support\Facades\Blade',
|
||||
'Cache' => 'Illuminate\Support\Facades\Cache',
|
||||
'ClassLoader' => 'Illuminate\Foundation\ClassLoader',
|
||||
'ClassLoader' => 'Illuminate\Support\ClassLoader',
|
||||
'Config' => 'Illuminate\Support\Facades\Config',
|
||||
'Controller' => 'Illuminate\Routing\Controllers\Controller',
|
||||
'Cookie' => 'Illuminate\Support\Facades\Cookie',
|
||||
|
@ -11,12 +11,12 @@
|
||||
|
|
||||
*/
|
||||
|
||||
ClassLoader::register(new ClassLoader(array(
|
||||
ClassLoader::addDirectories(array(
|
||||
|
||||
app_path().'/controllers',
|
||||
app_path().'/models',
|
||||
|
||||
)));
|
||||
));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -14,6 +14,19 @@
|
||||
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register The Laravel Auto Loader
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| We register an auto-loader "behind" the Composer loader that can load
|
||||
| model classes on the fly, even if the autoload files have not been
|
||||
| regenerated for the application. We'll add it to the stack here.
|
||||
|
|
||||
*/
|
||||
|
||||
Illuminate\Support\ClassLoader::register();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register The Workbench Loaders
|
||||
|
Loading…
x
Reference in New Issue
Block a user