ValidatorMiddleware
implements
Middleware
Interfaces, Classes and Traits
- Middleware
- Middleware are the plugins of Tactician. They receive each command that's
given to the CommandBus and can take any action they choose. Middleware can
continue the Command processing by passing the command they receive to the
$next callable, which is essentially the "next" Middleware in the chain.
Table of Contents
-
$validator
: ValidatorInterface
-
__construct()
: mixed
-
execute()
: mixed
$validator
protected
ValidatorInterface
$validator
__construct()
public
__construct(ValidatorInterface $validator) : mixed
Parameters
-
$validator
: ValidatorInterface
-
Return values
mixed
—
execute()
public
execute(object $command, callable $next) : mixed
Parameters
-
$command
: object
-
-
$next
: callable
-
-
throws
-
InvalidCommandException
Return values
mixed
—