symfony/symfony — pull request #10087 by realityking (2014-01-20 20:53:00+00:00)
Title: [WIP][Console] Add ContainerAwareCommand

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -

In the spirit of #7435 I propose adding a ContainerAwareCommand to the Console Component. This is helpful when implementing both the DIC and the Console.

I'm fairly certain the code remaining in ContainerAwareCommand in the FrameworkBundle could also be dropped as the Container is injected into every command by the Application. This would also make it a little easier to move code between Projects using the Framework and those using only the Components.

Todo:
- [ ] Get feedback whether the code remaining in FrameworkBundle is actually necessary.