Symfony passing array of arguments to DI services via yml file
Simply use a yaml array in your config.yml
file:
services:
my_di:
class: \MyClass
arguments:
- { param1: 'myvalue', param2: 'myvalue2' }
Simply use a yaml array in your config.yml
file:
services:
my_di:
class: \MyClass
arguments:
- { param1: 'myvalue', param2: 'myvalue2' }