Browse Source

Merge pull request #1875 from effenberger/master

modified IoC::registred()
Taylor Otwell 11 years ago
parent
commit
92f602edbf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/ioc.php

+ 2 - 2
laravel/ioc.php

@@ -52,7 +52,7 @@ class IoC {
 	 */
 	public static function registered($name)
 	{
-		return array_key_exists($name, static::$registry);
+		return array_key_exists($name, static::$registry) || array_key_exists($name, static::$singletons);
 	}
 
 	/**
@@ -246,4 +246,4 @@ class IoC {
 		}
 	}
 
-}
+}