Skip to content

[HttpKernel] Remove @internal flag and add @final to ServicesResetter #57246

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
Jun 3, 2024

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented May 30, 2024

Q A
Branch? 7.2
Bug fix? no
New feature? yes
Deprecations? no
Issues
License MIT

I used this class for ages! I moved many of my internal "hack" to symfony (messenger, etc)
But there are still a lot of use cases where we could need this class:

  • Custom worker that does not use messenger
  • import/export command that process a lot of rows (doctrine/dbal leak by default, even in prod env)
  • etc

Anyway, I used this class, and I never noticed it was internal. And today, I showed this class to @pyrech
and its IDE displayed the class in strikethrough! (vscode does not do that...)

So I think it's time to open this class.

@lyrixx lyrixx force-pushed the open-service-resetter branch from 78b308e to 6b1032f Compare June 3, 2024 10:04
@lyrixx lyrixx changed the title [HttpKernel] Remove @internal flag from ServicesResetter [HttpKernel] Remove @internal flag and add @final to ServicesResetter Jun 3, 2024
@fabpot
Copy link
Member

fabpot commented Jun 3, 2024

Thank you @lyrixx.

@fabpot fabpot merged commit b3508ee into symfony:7.2 Jun 3, 2024
8 of 10 checks passed
@lyrixx lyrixx deleted the open-service-resetter branch June 3, 2024 11:07
nicolas-grekas added a commit that referenced this pull request Jun 30, 2025
…rStark)

This PR was squashed before being merged into the 8.0 branch.

Discussion
----------

[HttpKernel] Make `ServicesResetter` class `final`

| Q             | A
| ------------- | ---
| Branch?       | 8.0
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | --
| License       | MIT

Follows
* #57246

Commits
-------

5fff774 [HttpKernel] Make `ServicesResetter` class `final`
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.

7 participants