2

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 ?

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

If you have your own backend, you can create the backend service inside a dedicated bundle. Then inside the Sonata Notification configuration section (http://www.sonata-project.org/bundles/notification/2-1/doc/reference/advanced_configuration.html) you can provide the service id of your backend.

That's it!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.