HasCommandLogger
Trait
Resolves the logger expected by command result helper traits.
Description
The trait caches the shared logger lazily so consuming commands do not need to carry constructor wiring for internal logging helpers.
Properties
$logger
: LoggerInterface|null
Caches the logger resolved for the consuming command.
Methods
getLogger()
: LoggerInterface
Returns the logger configured for the consuming command.