I'll explain with a simple example.this is the services.yml file:
parameters:
foo.array:
bar: barstring
baz: bazstring
services:
bar_service:
class: barclass
arguments:
- # i want to give foo.array['bar'] (barstring) here as an argument
how do i do that?
barstringas it's own parameter and then reference that asbar: %barstring%to stop repetition and also keep the array but I'm not sure the other way is possible...... In fact this has been covered, see stackoverflow.com/a/19920871/1791606