Closed mnapoli closed 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.
resource:
Pull request opened in FOSRestBundle here: https://github.com/FriendsOfSymfony/FOSRestBundle/pull/743
Pull request merged, need to update the documentation here now.
Done in upcoming PHP-DI 4.1.
See: https://github.com/FriendsOfSymfony/FOSRestBundle/issues/604
When defining a route with FOSRestBundle, for example:
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.