Download the PHP package dualmedia/doctrine-retry-bundle without Composer
On this page you can find all versions of the php package dualmedia/doctrine-retry-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dualmedia/doctrine-retry-bundle
More information about dualmedia/doctrine-retry-bundle
Files in dualmedia/doctrine-retry-bundle
Package doctrine-retry-bundle
Short Description Bundle for easy access to retryable doctrine transactions
License MIT
Informations about the package doctrine-retry-bundle
Doctrine Retry Bundle
A Symfony Bundle for easy retryable database transactions.
Install
Simply composer require dualmedia/doctrine-retry-bundle
Then add the bundle to your config/bundles.php file like so
Setup
You're free to leave the configuration as-is, otherwise all you can change is the following:
Usage
Passthrough Exceptions
By default, any \Exception thrown inside the callback will be caught, logged, and re-thrown after rolling back the transaction. If you want an exception to bypass retry logic entirely (e.g. a deliberate early exit or a business-logic exception that should propagate immediately without logging), implement PassthroughExceptionInterface:
When Retrier encounters an exception implementing PassthroughExceptionInterface, it will:
- Skip the retry loop
- Skip logging
- Re-throw the exception immediately
This is useful for intentional control-flow exceptions that should not be treated as database failures.
All versions of doctrine-retry-bundle with dependencies
doctrine/orm Version ^2 || ^3
symfony/framework-bundle Version ^6.4 || ^7.3
symfony/event-dispatcher Version ^6.4 || ^7.3