Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Doctrine] Deprecate Doctrine lifecycle subscribers #18457

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
Jul 6, 2023

Conversation

javiereguiluz
Copy link
Member

@stof
Copy link
Member

stof commented Jul 4, 2023

I would not put that as the first content in the section, especially given that the code snippet below already uses the attribute.

Copy link

@mdeboer mdeboer left a comment

Choose a reason for hiding this comment

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

Judging by symfony/symfony#49918, I would say that using lifecycle subscribers as services is deprecated from 6.3 and that it's advised to register lifecycle listeners instead.

The exact deprecation message reads:

Using Doctrine subscribers as services is deprecated, declare listeners instead

Edit: Nevermind, I see that's already in the second paragraph 😅

@javiereguiluz
Copy link
Member Author

OK, I've removed the first deprecation notice and left the second one.

Thanks for the reviews.

@javiereguiluz javiereguiluz merged commit a47bb9d into symfony:6.3 Jul 6, 2023
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.

5 participants