You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #2085 Fixed used alias for "FOS\RestBundle\View\ViewHandlerInterface" (enricog84)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes#2085).
Discussion
----------
Fixed used alias for "FOS\RestBundle\View\ViewHandlerInterface"
Changed `FOS\RestBundle\View\ViewHandlerInterface` to be an alias of "fos_rest.view_handler" instead of "fos_rest.view_handler.default". So in case if a custom ViewHandler has been configured under "fos_rest.service.view_handler" it will be used. Before this change, the used ViewHandler of Controller extending the `AbstractFOSRestController` would always have been pointing to `fos_rest.view_handler.default` because the service subscriber definition is `$subscribedServices['fos_rest.view_handler'] = ViewHandlerInterface::class;`.
This should fix#2029
Commits
-------
4da4503 Fixed used alias for "FOS\RestBundle\View\ViewHandlerInterface". Using "fos_rest.view_handler" instead of "fos_rest.view_handler.default" so in case a custom ViewHandler has been configured under "fos_rest.service.view_handler" it will be used.
0 commit comments