Registry / utility / league-tactician

league-tactician

JSON →
library1.2.0phppackagistunverified

A small, flexible command bus. Handy for building service layers.

composer require league/tactician
INSTALL
IMPORT
SIG · LEAGUE-TACTICIAN
L
league-tactician
utilityphpv1.2.0
harness data pending
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.

Upgrade
Version history
1.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
league-tactician — pip install league-tactician · libregistry