变更
This commit is contained in:
@@ -99,6 +99,17 @@ class Container implements ContainerInterface
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $interface
|
||||
* @param object $object
|
||||
* @return void
|
||||
*/
|
||||
public function bind(string $interface, object $object): void
|
||||
{
|
||||
$this->_singletons[$interface] = $object;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $className
|
||||
* @return ReflectionClass
|
||||
|
||||
Reference in New Issue
Block a user