abstract class DrushCommands implements IOAwareInterface, LoggerAwareInterface, ConfigAwareInterface (View source)

Traits

LoggerAwareTrait
ConfigAwareTrait
IO

Constants

REQ

OPT

Methods

__construct()

No description

LoggerInterface
logger()

Returns a logger object.

io()

Override Robo's IO function with our custom style.

getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

printFile(string $file)

Print the contents of a file.

Details

__construct()

protected LoggerInterface logger()

Returns a logger object.

Return Value

LoggerInterface

protected io()

Override Robo's IO function with our custom style.

DrushConfig getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

Return Value

DrushConfig

See also

https://stackoverflow.com/a/37687295.

protected printFile(string $file)

Print the contents of a file.

Parameters

string $file Full path to a file.