Skip to content

[FrameworkBundle][Workflow] Add WorflowGuardListenerPass only if it exists #52188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

smnandre
Copy link
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #52187
License MIT

As spotted by @PhilETaylor (in this comment) the framework is broken in 6.4-dev when the worflow component is not installed.

This PR fixes that by registering the compiler pass only if available.

@carsonbot carsonbot added this to the 6.4 milestone Oct 20, 2023
@OskarStark OskarStark changed the title [FrameworkBundle][Workflow] Add WorflowGuardListenerPass only if it exists [FrameworkBundle][Workflow] Add WorflowGuardListenerPass only if it exists Oct 20, 2023
@fabpot
Copy link
Member

fabpot commented Oct 20, 2023

Thank you @smnandre.

@fabpot fabpot merged commit 0284e95 into symfony:6.4 Oct 20, 2023
@nicolas-grekas
Copy link
Member

We'd need this also for use DataCollectorTranslatorPass and LoggingTranslatorPass, isn't it?

@fancyweb
Copy link
Contributor

Yes, see #52190 😄

@PhilETaylor
Copy link
Contributor

PhilETaylor commented Oct 20, 2023

Thank you @smnandre, just to feedback that this did fix the issue after composer update, in the 6.4.x project that identified it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: Attempted to load class "WorkflowGuardListenerPass" from namespace
6 participants