PHP-DI / Symfony-Bridge

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

FOSRestBundle incompatibility #1

Closed mnapoli closed 10 years ago

mnapoli commented 10 years ago

See: https://github.com/FriendsOfSymfony/FOSRestBundle/issues/604

When defining a route with FOSRestBundle, for example:

notification:
    type:     rest
    resource: Missive\ApiBundle\Controller\NotificationController

FOSRestBundle will not call the container to get the controller if resource: is a class name. That's a problem with PHP-DI: it forces to define a container entry with a custom name for each controller.

mnapoli commented 10 years ago

Pull request opened in FOSRestBundle here: https://github.com/FriendsOfSymfony/FOSRestBundle/pull/743

mnapoli commented 10 years ago

Pull request merged, need to update the documentation here now.

mnapoli commented 10 years ago

Done in upcoming PHP-DI 4.1.