Download the PHP package tourze/workerman-doctrine-bundle without Composer
On this page you can find all versions of the php package tourze/workerman-doctrine-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tourze/workerman-doctrine-bundle
More information about tourze/workerman-doctrine-bundle
Files in tourze/workerman-doctrine-bundle
Download tourze/workerman-doctrine-bundle
More information about tourze/workerman-doctrine-bundle
Files in tourze/workerman-doctrine-bundle
Vendor tourze
Package workerman-doctrine-bundle
Short Description Workerman + DoctrineORM
License MIT
Package workerman-doctrine-bundle
Short Description Workerman + DoctrineORM
License MIT
Please rate this library. Is it a good library?
Informations about the package workerman-doctrine-bundle
Workerman Doctrine Bundle
中文
A Symfony bundle that provides integration between Workerman and Doctrine ORM, ensuring proper entity manager lifecycle management in long-running processes.
Features
- Entity Manager Monitoring: Automatically monitors Doctrine EntityManager state in Workerman processes
- Process Protection: Automatically stops Workerman processes when EntityManager is closed to prevent data corruption
- Seamless Integration: Works with both HTTP and Console events
- Zero Configuration: Works out of the box with minimal setup
Installation
Quick Start
-
Add the bundle to your
config/bundles.php: - The bundle will automatically register its services and event listeners.
How It Works
The bundle includes an EntityManagerWatchSubscriber that monitors the Doctrine EntityManager state:
- Automatic Monitoring: Listens to
KernelEvents::TERMINATEandConsoleEvents::TERMINATEevents - Process Safety: When the EntityManager is closed (usually due to an exception), the subscriber automatically stops all Workerman processes
- Clean Shutdown: Prevents data corruption by ensuring processes restart with a fresh EntityManager
Use Cases
This bundle is particularly useful when:
- Running Symfony applications with Workerman in long-running processes
- Needing to ensure database connection stability
- Preventing EntityManager-related issues in high-concurrency scenarios
- Building robust long-running web services
Requirements
- PHP 8.1 or higher
- Symfony 6.4 or higher
- Doctrine ORM 3.0 or higher
- Workerman 5.1 or higher
- ext-pcntl extension
Contributing
Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of workerman-doctrine-bundle with dependencies
PHP Build Version
Package Version
Requires
ext-pcntl Version
*
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
symfony/config Version ^7.3
symfony/console Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/symfony-dependency-service-loader Version 1.0.*
workerman/workerman Version ^5.1
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
symfony/config Version ^7.3
symfony/console Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/symfony-dependency-service-loader Version 1.0.*
workerman/workerman Version ^5.1
The package tourze/workerman-doctrine-bundle contains the following files
Loading the files please wait ...