Asked a question on StackOverflow this weekend, the short answer is “No, you cannot.”

https://goo.gl/qEoWpz

Expression language in Symfony can be used in configurations and is an amazing way to get more out of your configurations. It’s limited to service definitions, but even with that limit it’s very powerful.

More on how to use expression with services here:

Note: Default for how services are named in config files changed between 3.2 and 3.3!

--

--

Radek Zajkowski

Tech Lead at https://nofixedaddressinc.com. Technical Architect, Product Manager, PHP, AWS, TDD and ex-.NETer.