The BodyListener runs before the RouterListener currently, so it cannot rely on the router.

so before making it work, the priority of the listener should be reverted back to a lower version than the router: https://github.com/FriendsOfSymfony/FOSRestBundle/issues/763
If you have some time to submit a PR doing the revert, it will make your code work after that