添加 `ContainerException::getContainer()`
作者: XedinUnknown创建于 2017年6月29日更新于 2023年7月14日
有一个与容器相关的异常,却没有获取容器实例的方法,这似乎有些奇怪。我建议在 `ContainerExceptionInterface` 中添加 `getContainer()`,该方法将返回 `ContainerInterface|null`,以防万一确实由于某种原因没有与之关联的容器。
内容来源: php-fig/container