On 1/15/11 12:50 AM, Bulat Shakirzyanov wrote:
Hmm, why can't the merging be done outside of extensions, say in the
loader itself. Every extension configuration is passed to load methods
as array, therefore something like array multidimensional merge of all
parameters of any given load method, where latter parameter overrides
former, should produce if not ideal, then close to that results.
This is the responsibility of the extension to merge the configuration.
The configuration should be "semantic". So, any attempt to "standardize"
the way you set configuration option is a big no-no. If you want that,
just set DIC parameters.
Have a look at the symfony1 tickets and you will find many about weird
behavior because the merging is done by the framework without any
semantic knowledge of what the parameters mean.
The
only tricky question left would be unsetting a parameter set on previous
run.
More than tricky. This is just impossible to deal with. Just have a look
at the number of tickets in symfony1 about this exact problem.
So, based on my symfony1 experience, I took two decisions for Symfony2:
* Parameters in the DIC are key/value pairs;
* Merging of different configurations must be done by the extensions
themselves as they know what to do.
Fabien
Sent from my Nexus One
On Jan 14, 2011 6:31 PM, "Nils Adermann" <[email protected]
<mailto:[email protected]>> wrote:
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en