HasCommandLogger

Trait

Resolves the logger expected by command result helper traits.

Description

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

Table of Contents

Methods

getLogger()

Returns the logger configured on the consuming command.

 : LoggerInterface
Methods

getLogger()

Public

Returns the logger configured on the consuming command.

public getLogger() : LoggerInterface
Tags
throws
LogicException

Description

when the consuming command does not expose a valid logger property

Return values
LoggerInterface