Skip to content
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

Fix autowiring of API action classes #58

Merged
merged 1 commit into from
Mar 5, 2024
Merged

Fix autowiring of API action classes #58

merged 1 commit into from
Mar 5, 2024

Conversation

dontub
Copy link
Contributor

@dontub dontub commented Feb 27, 2024

See comment of class ActionPropertyAutowireFixPass for details.

@dontub dontub requested a review from jensschuppe February 27, 2024 15:32
@dontub dontub added the bug Something isn't working label Feb 27, 2024

/**
* Symfony DI (v5 and v6) tries to autowire properties annotated with @required.
* Though CiviCRM action parameters can be annotated in this way to make them
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/CiviCRM action/CiviCRM API action

@dontub
Copy link
Contributor Author

dontub commented Feb 28, 2024

The compiler pass is now registered with the correct type.

@dontub dontub merged commit 9def6aa into master Mar 5, 2024
10 checks passed
@dontub dontub deleted the autowire-fix branch March 5, 2024 13:03
@dontub dontub added the status:fixed The issue has been resolved (usually by committing/merging code) label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:fixed The issue has been resolved (usually by committing/merging code)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants