I am trying to "port" yml routing to annotations. In yml I have route:
homepage_foo:
pattern: /foo
defaults: { _controller: FooBundle:Homepage:foo }
schemes: [%httpProtocol%]
where %httpProtocol% is parameter from container.
With annotation, similar approach is not working:
/**
* @Route("/foo", name="homepage_foo", schemes={%httpProtocol%})
*/
I am trying to use parameter %httpProtocol% with annotation. Is it possible with different syntax?
Works with:
/**
* @Route("/foo", name="homepage_foo", schemes="%httpProtocol%")
*/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With