Fix bug in IoC singleton checking.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
Taylor Otwell 2012-03-04 22:02:11 -06:00
parent e36dba4f10
commit 638032f4c0
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public static function resolve($name, $parameters = array())
// If the resolver is registering as a singleton resolver, we will cache // If the resolver is registering as a singleton resolver, we will cache
// the instance of the object in the container so we can resolve it next // the instance of the object in the container so we can resolve it next
// time without having to instantiate a brand new instance. // time without having to instantiate a brand new instance.
if (isset(static::$registry[$name]['singleton'])) if (static::$registry[$name]['singleton'])
{ {
return static::$singletons[$name] = $object; return static::$singletons[$name] = $object;
} }