refactoring the autoloader.

This commit is contained in:
Taylor Otwell
2011-10-31 23:00:13 -05:00
parent f824cc0f43
commit d44c076ebf
5 changed files with 24 additions and 52 deletions

View File

@@ -26,11 +26,12 @@ unset($application, $public, $storage, $laravel);
$constants = array(
'CACHE_PATH' => STORAGE_PATH.'cache/',
'CLASS_PATH' => APP_PATH.'classes/',
'CONFIG_PATH' => APP_PATH.'config/',
'CONTROLLER_PATH' => APP_PATH.'controllers/',
'DATABASE_PATH' => STORAGE_PATH.'database/',
'LANG_PATH' => APP_PATH.'language/',
'LIBRARY_PATH' => APP_PATH.'libraries/',
'MODEL_PATH' => APP_PATH.'models/',
'ROUTE_PATH' => APP_PATH.'routes/',
'SESSION_PATH' => STORAGE_PATH.'sessions/',
'SYS_CONFIG_PATH' => SYS_PATH.'config/',

View File

@@ -14,7 +14,7 @@ Config::load('session');
IoC::bootstrap();
spl_autoload_register(array(IoC::container()->core('autoloader'), 'load'));
spl_autoload_register(array('Laravel\\Autoloader', 'load'));
function e($value)
{