I moved all my controllers to /src/Web/Controller
in my Symfony 6 project like follows
├── src
│ ├── ...
│ └── Web
│ | ├── Controller
│ | ├── ....
| |── Kernel.php
my routes.yaml
is modified accordingly
#routes.yaml
controllers:
resource: ../src/Web/Controller/
type: annotation
Now the problem is all my routes have a name which is prefixed with app_web
. Which due to this structure I suppose.
$ php bin/console debug:router
command outputs following:
...
...
app_web_post_index GET|HEAD ANY ANY /post/
app_web_post_create GET|HEAD|POST ANY ANY /post/create
Here I only want the name to be post_index
How do I get rid of this prefix?