diff --git a/Container.php b/Container.php index 95b11e0..8ab950e 100644 --- a/Container.php +++ b/Container.php @@ -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