When we try to override the Controllers as the documentation says to give our own functionallity, our code is ignored.
We want to redirect to backend when you open login page and you are logged in
We are using Sf3.4 + FOSUserBundle2
Can you refer to the exact point in the documentation? (Provide a link)
HI @Devtronic
http://symfony.com/doc/current/bundles/FOSUserBundle/overriding_controllers.html
Here is the point.
Thanks a lot
Hi,
I have the same problem with the v2.1.2 & Sf3.3
It used to work with the version 2.0.2.
Our own controller overrided is ignored (ResettingController.php).
Thanks
I have this problem as well. Looks like a BC break to me. Bundle inheritance is just deprecated in 3.4: https://symfony.com/blog/new-in-symfony-3-4-deprecated-bundle-inheritance~~
See https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Upgrade.md#20-to-21
Thanks @bytehead as I can read in blog entrance you'd linked:
In Symfony 3.4 we worked towards simplifying bundles even more. That's why we deprecated bundle inheritance and we'll remove it in Symfony 4.0. This inheritance mechanism was traditionally used to override some templates, controllers and other elements of third-party bundles. In Symfony 4.0 you'll need to use alternative solutions to override those elements:
Controllers: define a route with the same path as the controller you want to override and implement your own logic.
We will try that.
Please, people of symfony, change the documentation of this bundle!
Most helpful comment
Thanks @bytehead as I can read in blog entrance you'd linked:
We will try that.
Please, people of symfony, change the documentation of this bundle!