Skip to content

Commit 7e81f9d

Browse files
committed
Merge branch 'develop' of github.com:laravel/laravel into develop
2 parents df6021a + 098c6c6 commit 7e81f9d

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

app/config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
'Auth' => 'Illuminate\Support\Facades\Auth',
143143
'Blade' => 'Illuminate\Support\Facades\Blade',
144144
'Cache' => 'Illuminate\Support\Facades\Cache',
145-
'ClassLoader' => 'Illuminate\Foundation\ClassLoader',
145+
'ClassLoader' => 'Illuminate\Support\ClassLoader',
146146
'Config' => 'Illuminate\Support\Facades\Config',
147147
'Controller' => 'Illuminate\Routing\Controllers\Controller',
148148
'Cookie' => 'Illuminate\Support\Facades\Cookie',

app/start/global.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
|
1212
*/
1313

14-
ClassLoader::register(new ClassLoader(array(
14+
ClassLoader::addDirectories(array(
1515

1616
app_path().'/controllers',
1717
app_path().'/models',
1818

19-
)));
19+
));
2020

2121
/*
2222
|--------------------------------------------------------------------------

bootstrap/autoload.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414

1515
require __DIR__.'/../vendor/autoload.php';
1616

17+
/*
18+
|--------------------------------------------------------------------------
19+
| Register The Laravel Auto Loader
20+
|--------------------------------------------------------------------------
21+
|
22+
| We register an auto-loader "behind" the Composer loader that can load
23+
| model classes on the fly, even if the autoload files have not been
24+
| regenerated for the application. We'll add it to the stack here.
25+
|
26+
*/
27+
28+
Illuminate\Support\ClassLoader::register();
29+
1730
/*
1831
|--------------------------------------------------------------------------
1932
| Register The Workbench Loaders

0 commit comments

Comments
 (0)