nalogka / doctrine-reconnect-bundle
Package info
github.com/nalozhka/doctrine-reconnect-bundle
Type:symfony-bundle
pkg:composer/nalogka/doctrine-reconnect-bundle
v0.2.1
2019-04-30 12:40 UTC
Requires
- php: ^7.1.3
- doctrine/dbal: ^2.5
- symfony/config: ^4.1
- symfony/dependency-injection: ^4.1
- symfony/http-kernel: ^4.1
This package is auto-updated.
Last update: 2026-02-27 22:06:12 UTC
README
Symfony bundle that checks connection has alive and reconnects if has not.
Installing
composer require nalogka/doctrine-reconnect-bundle
After that you can set up retries limit and time interval between retries:
# file: config/packages/doctrine_reconnect.yaml doctrine_reconnect: max_retries: 12 wait_before_retry: 333333 # microseconds
Doctrine configuration
Set connection wrapper class provided by Bundle as Doctrine DBAL Wrapper
# file: config/packages/doctrine.yaml doctrine: dbal: wrapper_class: Nalogka\DoctrineReconnectBundle\DBAL\ConnectionWrapper