symfony/symfony — pull request #6389 by seiffert (2012-12-17 01:27:41+00:00)
Title: Auto-Registration of Commands is now configurable

This PR adds a method to HttpKernel\Bundle that is used to decide whether the commands of the bundle should be registered using Bundle::registerCommands.

This needs to be configurable since there are cases in which commands should not be registered by default. One could just override Bundle::registerCommands to solve this. However, this wouldn't be compatible with LSP.