lamoda / tactician-locking-middleware
Tactician command bus middleware for blocking commands execution inside of other running command
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 17
Forks: 0
Open Issues: 0
pkg:composer/lamoda/tactician-locking-middleware
Requires
- php: ^7.1
- league/tactician: ^1.0
Requires (Dev)
- phpstan/phpstan: ^0.12.9
- phpstan/phpstan-phpunit: ^0.12.6
- phpunit/phpunit: ^7.5.20
This package is auto-updated.
Last update: 2023-06-10 20:14:12 UTC
README
Updated version of core Locking Middleware plugin. Can handle \Throwable, not only \Exception.
Installation
Composer
composer require lamoda/tactician-locking-middleware
Configuration
use Lamoda\TacticianLockingMiddleware\LockingMiddleware; use League\Tactician\CommandBus; $lockingMiddleware = new LockingMiddleware(); $commandBus = new CommandBus([ $lockingMiddleware, // ... your other middleware... ]);