You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ed (xabbuh)
This PR was merged into the 4.3 branch.
Discussion
----------
[Workflow] only decorate when an event dispatcher was passed
| Q | A
| ------------- | -
5BB4
--
| 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
-------
f19f28a only decorate when an event dispatcher was passed
Symfony version(s) affected: >=4.3.0
Description
When using workflow as standalone component it will not work when in production due to missing dependency on
symfony/event-dispatcher
How to reproduce
composer.json
test.php
Run composer without dev dependencies
composer install --no-dev
Running test.php will result in
Possible Solution
Either do a null check before trying to call
LegacyEventDispatcherProxy::decorate
or addsymfony/event-dispatcher
as a required dependency.The text was updated successfully, but these errors were encountered: