aeatech/transaction-manager-bundle
Symfony bundle integrating AEATech Transaction Manager with support for multiple managers per connection, Doctrine DBAL adapter, MySQL/PostgreSQL transaction factories, configurable retry policies (backoff/jitter), attribute-based autoconfiguration, and lazy-loaded managers via service locator.
aeatech/transaction-manager-doctrine-adapter bridge ensures compatibility without reinventing the wheel.TransactionAwareInterface) may suffice.EntityManager->beginTransaction()) or Doctrine’s event listeners meet the needs with less complexity?beginTransaction() calls, custom retry mechanisms).AdapterInterface and register custom factories.composer require aeatech/transaction-manager-bundle aeatech/transaction-manager-doctrine-adapter
# config/packages/aeatech_transaction_manager.yaml
aeatech_transaction_manager:
managers:
default:
connection: default
adapter: doctrine_dbal
retry_policy:
max_attempts: 3
delay: 100
#[TransactionManager(manager: 'default', retryPolicy: new ExponentialBackoff(3, 100))]
public function processOrder(Order $order): void { ... }
TransactionManagerRegistry into services requiring transactions.$manager = $registry->get('default');
$manager->execute(function (Connection $connection) {
$connection->executeStatement('UPDATE accounts SET balance = balance - ? WHERE id = ?', [100, $id]);
});
try-catch for retries).How can I help you explore Laravel packages today?