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

Make manager registry resettable #852

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Aug 30, 2024

Issue reported on Twitter: https://twitter.com/TheOnlyNeso/status/1829216833867808807

@alcaeus did the same for DoctrineBundle: doctrine/DoctrineBundle#1099 and doctrine/DoctrineBundle#1108

Resetting services is provided by Symfony Doctrine Bridge: https://github.com/symfony/symfony/blob/7.2/src/Symfony/Bridge/Doctrine/ManagerRegistry.php

I tried to add a comprehensive test.

@GromNaN GromNaN added this to the 5.1.0 milestone Aug 30, 2024
@GromNaN GromNaN requested a review from alcaeus August 30, 2024 06:27
/** @var class-string<Container> $containerClass */
$containerClass = 'MongoDBManagerRepositoryTestResetContainer';
$dumper = new PhpDumper($container);
eval('?' . '>' . $dumper->dump(['class' => $containerClass]));
Copy link
Member Author

@GromNaN GromNaN Aug 30, 2024

Choose a reason for hiding this comment

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

@GromNaN GromNaN merged commit 1399887 into doctrine:5.1.x Sep 2, 2024
3 checks passed
@GromNaN GromNaN deleted the reset-managers branch September 2, 2024 08:29
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.

3 participants