Download the PHP package swoole-bundle/resetter-bundle without Composer
On this page you can find all versions of the php package swoole-bundle/resetter-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download swoole-bundle/resetter-bundle
More information about swoole-bundle/resetter-bundle
Files in swoole-bundle/resetter-bundle
Package resetter-bundle
Short Description Symfony bundle with resetters for various connections, e.g. doctrine/dbal and phpredis.
License MIT
Homepage https://github.com/swoole-bundle/resetter-bundle
Informations about the package resetter-bundle
Doctrine resettable entity manager bundle
This bundle should be used with workloads where Symfony doesn't get initialized on each request, but stays in memory and the same instance handles multiple requests, one after another (e.g. when using Swoole Bundle). Another use case would be message queue consuming (e.g. Symfony messenger), where it is needed to clear (and possibly reset) the entity manager after processing a message.
The best feature of this bundle is, that it wraps all configured entity managers
into a ResettableEntityManager instance, which
is able to reset the entity manager when it gets stuck on an exception.
After each request the entity manager gets cleared or reset, if an exception occurred during request handling.
Also another feature is, that on each request start the entity manager connection gets pinged, so the connection won't get closed after some period of time.
Instalation
composer require swoole-bundle/resetter-bundle
Optional: Doctrine ORM
doctrine/orm is not a hard requirement. Install it only if you also want the entity managers to be
wrapped in a ResettableEntityManager (cleared/reset between requests):
composer require doctrine/orm
When ORM is absent, the entity-manager decoration is skipped automatically.
SETUP
All versions of resetter-bundle with dependencies
doctrine/dbal Version ^4.4
doctrine/doctrine-bundle Version ^2.18|^3.0
symfony/config Version ^6.4|^7.4|^8.0
symfony/dependency-injection Version ^6.4|^7.4|^8.0
symfony/yaml Version ^6.4|^7.4|^8.0