PHP-DI / Symfony-Bridge

PHP-DI integration with Symfony
http://php-di.org/doc/frameworks/symfony2.html
Other
17 stars 11 forks source link

"ContainerAware" controllers don't have the container injected #2

Closed mnapoli closed 10 years ago

mnapoli commented 10 years ago

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?).