added old style auto loader setup in addition to composer.

This commit is contained in:
Taylor Otwell 2013-01-12 16:38:27 -06:00
parent b53e6cd02e
commit b03521fabc
2 changed files with 48 additions and 29 deletions

View File

@ -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',

View File

@ -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