Category: routes

Symfony 4 route not found for a working Symfony project that I copied to a different server

I am trying to copy a working Symfony project from one environment to the other environment. (The creator is currently not able to help me) It looks like I almost succeeded doing this, until I had to check the Symfony…

How send Id to my view in redictionRoute Symfony

(Sorry for my english) I’m making a subscribe system (the flush is ok in database) than: return $this->redirectToRoute(‘organize_home’,); My Route of redirection needs an Id /** * @Route("/mon-compte/{id}", name="organize_home") */ public function accountHomepage(User $user) { return $this->render(‘user/organize_home.html.twig’); } How can…

Symfony – I am not redirected to login when accessing user route

I have these routes: … * @Route(“/”, name=”home”) */ public function homeAction(Request $request) … … * @Route(“/{slug}”, name=”request_list”) */ public function listAction(Request $request) … access_control: – { path: ^/, role: IS_AUTHENTICATED_ANONYMOUSLY } – { path: ^/login, role: IS_AUTHENTICATED_ANONYMOUSLY } -…

Symfony Routing Issue After Changing Apache Configuration File

I have an issue with my symphony project, Let me explain step by step what changes I made. My old working project: URL of my old project looks like http://127.0.0.1/my_project/something httpd.conf file Alias /my_project/something/auth /opt/www/my_project/auth <Directory /opt/www/my_project/auth> AllowOverride None Require…

Symfony router component: does annotation priority tag affect performance?

We are installing a standalone symfony/routing component and according to this blog post, the routing component supports priority annotation property since version 5.1. Our traffic is ~3M page views per day, so performance is relatively important. Is it a good…