container
container copied to clipboard
Hey there, I am working on https://github.com/laminas/laminas-servicemanager/pull/96 and realized that it would be quite simple to fully replace the abandoned package `container-interop/container-interop` by using some composer magic: https://github.com/laminas/laminas-servicemanager/pull/96/files#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34R87 https://github.com/laminas/laminas-servicemanager/pull/96/files#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34R52 https://github.com/laminas/laminas-servicemanager/pull/96/files#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34R61...
PSR Logger has a `Null` Logger which can be used easily for testing purposes. Is there any thought about creating a Dummy/Test/Null container for the same reasons?
It's seems rather weird that an exception which relates to a container has no means of retrieving the container instance. I suggest adding `getContainer()` to `ContainerExceptionInterface`, which would return `ContainerInterface|null`,...
Inspired by #44 I've tried @nicolas-grekas' proposal but I do not have autocompletion without adding "@param" annotation.
Why doesn't the interface provide a "set" method? I wonder what the use case for the interface is if I can't rely on a contract about how objects can be...