wiktus239
wiktus239

Reputation: 1420

Global parameters in routing, using annotations

I would like to restrict some of the routing parameters, but as it is a complex and repeating rule, I would like to have it set in the projects config file.

The solution is well described in Symfony's documentation here, but what is omitted is how to use it with annotation routing. It's neither shown nor said it can't be done.

Question is, how to achieve this?

Upvotes: 1

Views: 106

Answers (1)

malcolm
malcolm

Reputation: 5542

The same way @Route("/%app.parameter%")

Upvotes: 2

Related Questions