Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CommandBus
✓ use League\Tactician\CommandBus;
Set up a command bus with a handler middleware.
use League\Tactician\CommandBus;
use League\Tactician\Handler\CommandHandlerMiddleware;
use League\Tactician\Handler\MethodNameInflector\HandleInflector;
$bus = new CommandBus([
new CommandHandlerMiddleware(
new \League\Tactician\Handler\Locator\InMemoryLocator(),
new \League\Tactician\Handler\CommandNameExtractor\ClassNameExtractor(),
new HandleInflector()
)
]);
$bus->handle(new MyCommand());
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.