Open damienflament opened 7 years ago
Looks like a valid feature to me. Feel free to PR - you will just have to add the key to the loader(s) and ensure that the (PHPCR-ODM) adapter persists the method on the Route
object (which already has a method setMethods(array $methods)
iirc)
I want to match a different controller action for each HTTP method on a single URI. The nicest way to do this might be:
As the _urischema key is validated by the YmlFileLoader but not handled as a mapping key, I tried this:
But the methods key is not handled.
What's the good way to add HTTP method requirements like with the standard Symfony router ?