Merge pull request #1875 from effenberger/master
modified IoC::registred()
This commit is contained in:
commit
92f602edbf
|
@ -52,7 +52,7 @@ public static function unregister($name)
|
||||||
*/
|
*/
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -246,4 +246,4 @@ protected static function resolveNonClass($parameter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue