Answer the question
In order to leave comments, you need to log in
How to override configs connected via DI in symfony2?
Hello. There are installed vendors, and override folders in src/Application/bundle name. Controllers, etc. are redefined as needed, however, vendor bundle configs are connected via DI in this way:
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('page.xml');
$loader->load('serializer.xml');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question