This commit is contained in:
2021-10-26 11:39:18 +08:00
parent 4b861eaa56
commit 4961b38a8a
+1 -1
View File
@@ -116,7 +116,7 @@ class Container extends BaseObject implements ContainerInterface
$this->_interfaces[$interface] = $object;
} else {
$this->_interfaces[$interface] = get_class($object);
$this->_singletons[$interface] = $object;
$this->_singletons[get_class($object)] = $object;
}
}