Search code examples
phpsymfonybundlesymfony-sonata

Override DependencyInjection/configuration.php of third party bundle


I am using sonataNofificationBundle, they have provided four backends. I have the custom requirement so want to add one more backend. They have backend configurations in

DependencyInjection/configuration.php,
DependencyInjection/SonataNotificationExtension.php, 
Resources/Config/backend.xml. 

Instead of making changes in sonataNotificationBundle files, I want to create bundle which override these files to create one more backend.

Does Symfony2 allow to override DependencyInjection configuration files ? Is there any way to achieve the same goal ?


Solution

  • Maybe you want to take a quick glance at the official doc about overriding bundles configurations?