Commit 92f602ed authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1875 from effenberger/master

modified IoC::registred()
parents 23464cac e1fde01e
...@@ -52,7 +52,7 @@ class IoC { ...@@ -52,7 +52,7 @@ class IoC {
*/ */
public static function registered($name) 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);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment