Commit e1fde01e authored by Max's avatar Max

IoC::registered check fixed

Returns true if the instance was registered with IoC::instance
parent 23464cac
......@@ -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);
}
/**
......
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