added facades and made other ioc improvements.
This commit is contained in:
@@ -40,6 +40,8 @@ class Loader {
|
||||
{
|
||||
$file = strtolower(str_replace('\\', '/', $class));
|
||||
|
||||
if (strpos($file, 'laravel') !== false) $file = str_replace('_facade', '', $file);
|
||||
|
||||
if (array_key_exists($class, $this->aliases))
|
||||
{
|
||||
return class_alias($this->aliases[$class], $class);
|
||||
@@ -49,7 +51,7 @@ class Loader {
|
||||
{
|
||||
if (file_exists($path = $directory.$file.EXT))
|
||||
{
|
||||
require $path;
|
||||
require_once $path;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user