SpBowerBundle icon indicating copy to clipboard operation
SpBowerBundle copied to clipboard

"Global" bundle configuration

Open althaus opened this issue 11 years ago • 3 comments

Hey,

we're working on a modularized app... e.g. customers can choose which bundles to install. Based on the doc you have to activate each bundle one by one. Is there a way to preset a global config which will then be used by each available bundle? I'd imaging something like bundles.default and the SpBowerBundle would then iterate over all bundles and check if there's a bower.json at the given location.

Cheers Matthias

althaus avatar Jun 19 '14 10:06 althaus

Currently there is no way to do this. I'd be happy for every contribution since I'm currently kinda busy and only can work on this project when I have some spare time.

Spea avatar Jun 30 '14 18:06 Spea

Ok... I'll keep this open for now and see in what direction our development goes.

althaus avatar Jul 01 '14 09:07 althaus

you could try using this to configure the bundle based on installed bundles.

http://symfony.com/doc/current/cookbook/bundles/prepend_extension.html

I assume you have some bundle that manages the installation of other bundles.

Alternatively you could write a compiler pass.

ghost avatar Jul 11 '14 05:07 ghost