Access global parameters from route condition expressions in Symfony
I'm trying to access app-wide symfony parameters (defined in app/config/parameters.yml) from an expression in a route condition ( documentation ). I tried my luck inserting the parameter within percentage signs and through the function "parameter" (as described for DI here ), both to no avail. Here is the example with the parameter function: example_route: path: /example/{_locale} condition: "request.getLocale() in parameter('locales_array')" defaults: _controller: "AcmeExampleBundle:Example:index" _locale: %locales_default% However I'm getting: SyntaxError - The function "parameter" does not