67e1709205
This PR was squashed before being merged into the 4.3-dev branch (closes #31061).
Discussion
----------
[BridgeDoctrineMessenger] Doctrine ping connection middleware
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
- Check and reconnect if mysql has gone away:
<service id="messenger.middleware.doctrine_ping_connection" class="Symfony\Bridge\Doctrine\Messenger\DoctrinePingConnectionMiddleware" public="false">
<argument type="service" id="doctrine" />
</service>
- Close and save opened connections (not active worker):
<service id="messenger.middleware.doctrine_close_connection" class="Symfony\Bridge\Doctrine\Messenger\DoctrineCloseConnectionMiddleware" public="false">
<argument type="service" id="doctrine" />
</service>
Commits
-------
|
||
---|---|---|
.. | ||
CacheWarmer | ||
DataCollector | ||
DataFixtures | ||
DependencyInjection | ||
Form | ||
Logger | ||
Messenger | ||
PropertyInfo | ||
Security | ||
Test | ||
Tests | ||
Validator | ||
.gitignore | ||
CHANGELOG.md | ||
composer.json | ||
ContainerAwareEventManager.php | ||
LICENSE | ||
ManagerRegistry.php | ||
phpunit.xml.dist | ||
README.md | ||
RegistryInterface.php |