This commit is contained in:
2023-04-16 00:15:10 +08:00
parent eebd01bcc5
commit 43ce6b3486
+11
View File
@@ -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