LoggingDecorator
- Full name:
\Codefy\CommandBus\Decorators\LoggingDecorator
- This class implements:
\Codefy\CommandBus\Decorator
Properties
logger
context
Methods
__construct
public __construct(\Psr\Log\LoggerInterface $logger, mixed|null $context = null, ?\Codefy\CommandBus\CommandBus $innerCommandBus = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$logger | \Psr\Log\LoggerInterface | |
$context | mixed|null | Something which is serializable that will be logged with the command execution, such as the request/session information. |
$innerCommandBus | ?\Codefy\CommandBus\CommandBus |
execute
Execute a command.
Parameters:
Parameter | Type | Description |
---|---|---|
$command | \Codefy\CommandBus\Command |
Throws:
log
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string|\Stringable | |
$command | \Codefy\CommandBus\Command |
createExceptionString
Parameters:
Parameter | Type | Description |
---|---|---|
$e | \Qubus\Exception\Exception |
Inherited methods
setInnerBus
Parameters:
Parameter | Type | Description |
---|---|---|
$bus | \Codefy\CommandBus\CommandBus |
Automatically generated on 2025-10-13