fix autoloading system path issue.
This commit is contained in:
@@ -60,11 +60,6 @@ class Autoloader {
|
|||||||
{
|
{
|
||||||
$namespace = substr($class, 0, $slash);
|
$namespace = substr($class, 0, $slash);
|
||||||
|
|
||||||
if ($namespace == 'Laravel')
|
|
||||||
{
|
|
||||||
return static::load_psr($class, path('base'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// If the class namespace is mapped to a directory, we will load the class
|
// If the class namespace is mapped to a directory, we will load the class
|
||||||
// using the PSR-0 standards from that directory; however, we will trim
|
// using the PSR-0 standards from that directory; however, we will trim
|
||||||
// off the beginning of the namespace to account for files in the root
|
// off the beginning of the namespace to account for files in the root
|
||||||
|
|||||||
@@ -37,6 +37,13 @@ spl_autoload_register(array('Laravel\\Autoloader', 'load'));
|
|||||||
*/
|
*/
|
||||||
Autoloader::$aliases = Config::get('application.aliases');
|
Autoloader::$aliases = Config::get('application.aliases');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register the Laravel namespace so that the auto-loader loads it
|
||||||
|
* according to the PSR-0 naming conventions. This should provide
|
||||||
|
* fast resolution of all core classes.
|
||||||
|
*/
|
||||||
|
Autoloader::namespaces(array('Laravel' => path('sys')));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register all of the bundles that are defined in the bundle info
|
* Register all of the bundles that are defined in the bundle info
|
||||||
* file within the bundles directory. This informs the framework
|
* file within the bundles directory. This informs the framework
|
||||||
|
|||||||
Reference in New Issue
Block a user