Title: Symfony how to extend default bundle config?
Tags: symfony
Question: Lets imagine i have a bundle with service config loaded via DependencyInjection/VendorAcmeExtension.php
There are Configuration.php class that loads some parameter default value (array of values).
The question: how to extend default values? In theory i have to set param value via config.yml, but this will override default value. But i need to add my value to default value array instead of override this default array
Update
Sorry for my engish (
For example vendor bundle have Configuration.php that loads default values:
$rootNode
-&gt;children()
...
-&gt;defaultValue(
array(
'entity'=&gt;array(
'label' =&gt; 'oro.user.privileges.entity.label',
'view_type' =&gt; 'grid',
'types' =&gt; array('entity'),
'field_type' =&gt; 'oro_acl_access_level_selector',
'fix_values' =&gt; false,
'default_value' =&gt; 5,
'show_default' =&gt; true,
),
'action'=&gt;array(
'label' =&gt; 'oro.user.privileges.action.label',
'view_type' =&gt; 'list',
'types' =&gt; array('action'),
'field_type' =&gt; 'oro_acl_access_level_selector',
'fix_values' =&gt; false,
'default_value' =&gt; 1,
'show_default' =&gt; false,
)
)
)
...
This default value contains an array
I need to add new element to this array. If i do this in config.yml - i will overwrite default values. But all i want is to push new element
Comment: huh? what? need to add my value to default value array? please explain a bit more

Comment: sorry, i updated question

Here is the accepted answer: If you need to override parts of a bundle, you could you bundle inheritance, but this is pretty rare IMO.
To override the default configuration, you could just define a prepended configuration method; this works just like if you put a config block at the top of your config.yml file (sort of).
Comment for this answer: Thats it! Thank you, i'll try today. This manual looks like what im looking for


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2015:00:10/20/15', 'FavoriteCount': 0.0, 'PostTypeId': 1, 'Tags': '<symfony>', 'Title': 'Symfony how to extend default bundle config?', 'ViewCount': 1615, 'id': 33241619, 'user_AboutMe': '', 'user_AccountId': 2280649.0, 'user_DisplayName': 'Stepan Yudin', 'user_Reputation': 472.0, 'user_Views': 91.0, 'user_id': 2005817.0}}