user2997418
user2997418

Reputation: 658

many routing for same controller action

I use symphony § and I manage my routes in routing.yml function, How can I use mutliples routes for same controller function. I know I can do it with annotation but I don't manage my routes in annotation.

Upvotes: 0

Views: 901

Answers (1)

Veve
Veve

Reputation: 6758

You can have multiple routes for the same controller in routing.yml as in annotations.

If there are multiples routes matching the url, the firt one win, as explained in the doc.

Upvotes: 1

Related Questions