mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Revert injector type hint to Injector
This commit is contained in:
parent
c75f759b18
commit
29f450b1e1
@ -237,7 +237,7 @@ class Injector implements ContainerInterface
|
||||
* If a user wants to use the injector as a static reference
|
||||
*
|
||||
* @param array $config
|
||||
* @return ContainerInterface
|
||||
* @return Injector
|
||||
*/
|
||||
public static function inst($config = null)
|
||||
{
|
||||
@ -250,10 +250,10 @@ class Injector implements ContainerInterface
|
||||
/**
|
||||
* Sets the default global injector instance.
|
||||
*
|
||||
* @param ContainerInterface $instance
|
||||
* @param Injector $instance
|
||||
* @return Injector Reference to new active Injector instance
|
||||
*/
|
||||
public static function set_inst(ContainerInterface $instance)
|
||||
public static function set_inst(Injector $instance)
|
||||
{
|
||||
return self::$instance = $instance;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user