Routing
in package
Table of Contents
- $mapping : array<string|int, mixed>
- [ 'busId_1' => [ 'My\Command\Name1' => 'some.service.id', 'My\Other\Command' => 'some.service.id.or.same.one' ], 'busId_2' => [ 'Legacy\App\Command1' => 'some.old.handler', ... ], ]
- __construct() : mixed
- commandToServiceMapping() : array<string|int, mixed>
- routeToAllBuses() : mixed
- routeToBus() : mixed
- assertValidCommandFQCN() : mixed
- assertValidBusId() : mixed
Properties
$mapping
[ 'busId_1' => [ 'My\Command\Name1' => 'some.service.id', 'My\Other\Command' => 'some.service.id.or.same.one' ], 'busId_2' => [ 'Legacy\App\Command1' => 'some.old.handler', ... ], ]
private
array<string|int, mixed>
$mapping
= []
Methods
__construct()
public
__construct(array<string|int, mixed> $validBusIds) : mixed
Parameters
- $validBusIds : array<string|int, mixed>
Return values
mixed —commandToServiceMapping()
public
commandToServiceMapping(string $busId) : array<string|int, mixed>
Parameters
- $busId : string
Return values
array<string|int, mixed> —routeToAllBuses()
public
routeToAllBuses(mixed $commandClassName, mixed $serviceId) : mixed
Parameters
- $commandClassName : mixed
- $serviceId : mixed
Return values
mixed —routeToBus()
public
routeToBus(mixed $busId, mixed $commandClassName, mixed $serviceId) : mixed
Parameters
- $busId : mixed
- $commandClassName : mixed
- $serviceId : mixed
Return values
mixed —assertValidCommandFQCN()
protected
assertValidCommandFQCN(mixed $commandClassName, mixed $serviceId) : mixed
Parameters
- $commandClassName : mixed
- $serviceId : mixed
Return values
mixed —assertValidBusId()
private
assertValidBusId(string $busId) : mixed
Parameters
- $busId : string