symfony/symfony — pull request #2482 by pjedrzejewski (2011-10-26 17:24:59+00:00)
Title: [2.1] Add way to set bundle dependant on other bundles.

**Bug fix**: no.
**Feature addition**: yes.
**BC break**: no.
**Tests pass**: yes.

Hi,

I am not sure if it will be useful at the moment, but the number of bundles constantly grows.
Some bundles are tied with each other, like my [SyliusThemingBundle](http://github.com/Sylius/SyliusThemingBundle) with the [LiipThemeBundle](http://github.com/liip/LiipThemeBundle).
When I disccussed this integration with @lsmith on IRC, he suggested to set the bundle as parent of my bundle, as there currently is no other way to formalize this dependency.
But this creates some issues, for example with files overriding.
We have **Composer** but i thought about elegant way to do this in the Symfony2 itself.
And here is my pull request, it adds simple method to the base bundle class and a check within the kernel.

PS. I am not sure if I modified the test properly. : (