added facades and made other ioc improvements.

This commit is contained in:
Taylor Otwell
2011-08-30 22:09:47 -05:00
parent 501953f2db
commit 0ef96fb8d0
27 changed files with 271 additions and 276 deletions

View File

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