bug #32331 [Workflow] only decorate when an event dispatcher was passed (xabbuh)
bug #32331 [Workflow] only decorate when an event dispatcher was passed (xabbuh)

This PR was merged into the 4.3 branch.

Discussion
----------

[Workflow] only decorate when an event dispatcher was passed

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

Commits
-------

f19f28a41d only decorate when an event dispatcher was passed

d-ph/symfony,yceruto/symfony,zcodes/symfony,paradajozsef/symfony,Tobion/symfony,mweimerskirch/symfony,Koc/symfony,mnapoli/symfony,voronkovich/symfony,bendavies/symfony,oleg-andreyev/symfony,Nyholm/symfony,jderusse/symfony,MatTheCat/symfony,jderusse/symfony,oleg-andreyev/symfony,mpdude/symfony,teohhanhui/symfony,lyrixx/symfony,alekitto/symfony,MatTheCat/symfony,lstrojny/symfony,maidmaid/symfony,bendavies/symfony,oleg-andreyev/symfony,nicolas-grekas/symfony,HeahDude/symfony,pierredup/symfony,voronkovich/symfony,Nyholm/symfony,Tobion/symfony,mweimerskirch/symfony,Simperfit/symfony,damienalexandre/symfony,xabbuh/symfony,zorn-v/symfony,Slamdunk/symfony,stof/symfony,hhamon/symfony,shieldo/symfony,phramz/symfony,OskarStark/symfony,jakzal/symfony,ro0NL/symfony,chalasr/symfony,lstrojny/symfony,chalasr/symfony,smatyas/symfony,xabbuh/symfony,gonzalovilaseca/symfony,yceruto/symfony,shieldo/symfony,Deamon/symfony,curry684/symfony,hhamon/symfony,mnapoli/symfony,romaricdrigon/symfony,pyrech/symfony,ro0NL/symfony,bendavies/symfony,ro0NL/symfony,ro0NL/symfony,arjenm/symfony,pyrech/symfony,docteurklein/symfony,Tobion/symfony,d-ph/symfony,mweimerskirch/symfony,Nyholm/symfony,kbond/symfony,pierredup/symfony,localheinz/symfony,OskarStark/symfony,romaricdrigon/symfony,paradajozsef/symfony,Simperfit/symfony,stof/symfony,HeahDude/symfony,1ed/symfony,mweimerskirch/symfony,pyrech/symfony,arjenm/symfony,romaricdrigon/symfony,MatTheCat/symfony,1ed/symfony,bendavies/symfony,Koc/symfony,tgalopin/symfony,alekitto/symfony,phramz/symfony,mpdude/symfony,smatyas/symfony,Taluu/symfony,symfony/symfony,mnapoli/symfony,voronkovich/symfony,fabpot/symfony,phramz/symfony,maidmaid/symfony,Simperfit/symfony,jvasseur/symfony,derrabus/symfony,dmaicher/symfony,tucksaun/symfony,nicolas-grekas/symfony,jderusse/symfony,Slamdunk/symfony,jakzal/symfony,damienalexandre/symfony,lyrixx/symfony,Taluu/symfony,chalasr/symfony,jvasseur/symfony,paradajozsef/symfony,derrabus/symfony,tgalopin/symfony,Simperfit/symfony,Slamdunk/symfony,Slamdunk/symfony,docteurklein/symfony,hhamon/symfony,yceruto/symfony,xabbuh/symfony,jvasseur/symfony,Koc/symfony,arjenm/symfony,HeahDude/symfony,dmaicher/symfony,Deamon/symfony,curry684/symfony,stof/symfony,voronkovich/symfony,dmaicher/symfony,mnapoli/symfony,sgehrig/symfony,lstrojny/symfony,nicolas-grekas/symfony,ogizanagi/symfony,ogizanagi/symfony,ogizanagi/symfony,maidmaid/symfony,fabpot/symfony,zcodes/symfony,Koc/symfony,Nyholm/symfony,symfony/symfony,fabpot/symfony,shieldo/symfony,alekitto/symfony,kbond/symfony,arjenm/symfony,hhamon/symfony,sgehrig/symfony,1ed/symfony,alekitto/symfony,gonzalovilaseca/symfony,zerkms/symfony,dmaicher/symfony,smatyas/symfony,tucksaun/symfony,symfony/symfony,nicolas-grekas/symfony,localheinz/symfony,kbond/symfony,jakzal/symfony,teohhanhui/symfony,xabbuh/symfony,OskarStark/symfony,zcodes/symfony,teohhanhui/symfony,lyrixx/symfony,Deamon/symfony,mnapoli/symfony,Tobion/symfony,zerkms/symfony,zerkms/symfony,jvasseur/symfony,mpdude/symfony,chalasr/symfony,docteurklein/symfony,curry684/symfony,ragboyjr/symfony,zorn-v/symfony,garak/symfony,garak/symfony,smatyas/symfony,derrabus/symfony,1ed/symfony,garak/symfony,derrabus/symfony,Deamon/symfony,stof/symfony,tucksaun/symfony,romaricdrigon/symfony,docteurklein/symfony,phramz/symfony,garak/symfony,tgalopin/symfony,paradajozsef/symfony,symfony/symfony,ragboyjr/symfony,d-ph/symfony,docteurklein/symfony,curry684/symfony,Deamon/symfony,shieldo/symfony,kbond/symfony,ragboyjr/symfony,zorn-v/symfony,tucksaun/symfony,zorn-v/symfony,pierredup/symfony,pyrech/symfony,sgehrig/symfony,zcodes/symfony,localheinz/symfony,mweimerskirch/symfony,Taluu/symfony,HeahDude/symfony,mpdude/symfony,MatTheCat/symfony,jakzal/symfony,gonzalovilaseca/symfony,teohhanhui/symfony,tgalopin/symfony,fabpot/symfony,smatyas/symfony,maidmaid/symfony,ogizanagi/symfony,localheinz/symfony,yceruto/symfony,zerkms/symfony,OskarStark/symfony,jderusse/symfony,pierredup/symfony,d-ph/symfony,ragboyjr/symfony,damienalexandre/symfony,damienalexandre/symfony,sgehrig/symfony,Simperfit/symfony,oleg-andreyev/symfony,Taluu/symfony,lyrixx/symfony,gonzalovilaseca/symfony