Spea / SpBowerBundle

Symfony2 Bundle to handle asset dependencies with bower
231 stars 44 forks source link

"Global" bundle configuration #90

Open althaus opened 10 years ago

althaus commented 10 years ago

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

Spea commented 10 years ago

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.

althaus commented 10 years ago

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

ghost commented 10 years ago

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.