[WCM] Skip console commands from event listeners

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes (symfony/symfony#9235)
| Applies to    | master
| Fixed tickets | none