Replies: 3 comments 2 replies
-
You can set the host for your controller routes. Documentation here with an example.
You can also point it to a parameter.
If you need a more custom solution, lets say for checking a whitelist of hosts for example, then you can use conditions that use your custom service. Route matching expressions documentation.
|
Beta Was this translation helpful? Give feedback.
-
You can build your own listener and do the logic in it. It's like 4 LOC. It should be simple. You must listen kernel.request with a very high priority |
Beta Was this translation helpful? Give feedback.
-
I believe the answer is |
Beta Was this translation helpful? Give feedback.
-
Does symfony have a concept of "allowed hosts" (see for example Django's docs) which is:
Beta Was this translation helpful? Give feedback.
All reactions