[WCM]Register Commands in the Service Container

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes (symfony/symfony#9199)
| Applies to    | 2.4+
| Fixed tickets | -