Hi!

Is there any way to extend the parameter in DI xml configuration?

here is what I mean:
Assume we have a parameter as this:

<parameter key="tasks.simple_task1.options" type="collection">
<parameter key="test">false</parameter>
<parameter key="test2" type="collection">
<parameter key="param1">test</parameter>
<parameter key="param2">test</parameter>
<parameter key="param3">test</parameter>
</parameter>
</parameter>

And need to create another one, the same as first one but with 1 small 
difference:

<parameter key="tasks.simple_task2.options" type="collection">
<parameter key="test">false</parameter>
<parameter key="test2" type="collection">
<parameter key="param1">test</parameter>
<parameter key="param2">test</parameter>
<parameter key="param3">test3</parameter>
</parameter>
</parameter>

Is there any way to extend the first options array overriding just the
 tasks.simple_task2.options.test2.param3 ???

Anything like 
<parameter key="tasks.simple_task2.options" 
extends="%tasks.simple_task1.options%">
<parameter key="test2" type="collection">
<parameter key="param3">test3</parameter>
</parameter>
</parameter>

This feature would be very useful if the configuration array is very big and 
needs to be duplicated with some small changes.

Thanks!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to