Prelude¶
The Symfony bundle integrates Small Swoole Entity Manager with the Symfony service container and console.
The Core 3-compatible bundle line provides:
- a public
ConnectionFactoryInterfaceservice backed by the Core 3 connection factory; - a public
EntityManagerFactoryInterfaceservice backed by the Core 3 manager factory; - private concrete implementations so applications depend on contracts rather than bundle internals;
- automatic manager-cache reset support for long-running Symfony workers;
- typed bundle configuration for MySQL, PostgreSQL and Small Swoole DB connections;
- explicit database-layer parameters;
- the
swoole:entity-manager:layers:executecommand, including selector-based execution.
The v2 dependency baseline is PHP 8.3–8.4, Core 3.0.*, and Symfony 7.4 or 8.0 components.