IoC::registered check fixed

Returns true if the instance was registered with IoC::instance
This commit is contained in:
Max 2013-04-12 16:35:33 +03:00
parent 23464cac25
commit e1fde01e9d
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ public static function unregister($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);
}
/**
@ -246,4 +246,4 @@ protected static function resolveNonClass($parameter)
}
}
}
}