Skip to content

HasCommandLogger

github-actions edited this page Apr 22, 2026 · 1 revision

Resolves the logger expected by command result helper traits.

The consuming command is expected to expose an initialized $logger property so reusable traits can log without coupling themselves to a specific constructor signature.


  • Full name: \FastForward\DevTools\Console\Command\Traits\HasCommandLogger

Methods

getLogger

Returns the logger configured on the consuming command.

public getLogger(): \Psr\Log\LoggerInterface

Throws:

when the consuming command does not expose a valid logger property


Clone this wiki locally