Answer the question
In order to leave comments, you need to log in
How to modify third party bundle yaml configuration?
there is a config file in the bundle
system:
default:
yui:
filter: min
combine: true
modules:
capi:
path: /vendors/ez-js-rest-client/dist/CAPI.js
ez-capi:
requires: ['capi']
path: /js/external/ez-capi.js
alloyeditor:
path: /vendors/alloy-editor/dist/alloy-editor/alloy-editor-all.js
ez-alloyeditor:
Answer the question
In order to leave comments, you need to log in
If everything is still relevant, then this is done very simply. A bundle that wants to modify the configuration of another bundle must implement the PrependExtensionInterface interface. And then in the prepend method we simply call
public function prepend(ContainerBuilder $container){
$name = 'your_bundle_name'; // по конфигу видно что это system
$config['default']['yui']['modules']['some_module'] = []; // конфигурация вашего модуля
$container->prependExtensionConfig($name, $config);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question