Symfony has the ContainerAwareInterface interface to inject the whole container. Obviously PHP-DI doesn't support this (deliberately) but it breaks even simple containers using $this->getDoctrine() for example.
As a compromise, PHP-DI should inject the container until Symfony removes this ContainerAwareInterface (v3.0 maybe?).
Symfony has the
ContainerAwareInterface
interface to inject the whole container. Obviously PHP-DI doesn't support this (deliberately) but it breaks even simple containers using$this->getDoctrine()
for example.As a compromise, PHP-DI should inject the container until Symfony removes this
ContainerAwareInterface
(v3.0 maybe?).