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?
schemes={%httpProtocol%}
schemes={httpProtocol}
andrequirements = { "httpProtocol" = "%httpProtocol%"
requirements
.