class NotifyCommands extends DrushCommands (View source)

Traits

ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Methods

getConfig()

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

__construct()

No description

LoggerInterface
logger()

Returns a logger object.

io()

Override Robo's IO function with our custom style.

printFile(string $file)

Print the contents of a file.

optionsetNotify()

No description

registerShutdown(CommandData $commandData)

No description

shutdown(CommandData $commandData)

No description

static 
shutdownSend($msg, CommandData $commandData)

Prepares and dispatches notifications to delivery mechanisms.

static bool
shutdownSendText($msg, CommandData $commandData)

Send text-based system notification.

static bool
isAllowed()

Identify if the given Drush request should trigger a notification.

Details

DrushConfig getConfig()

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

__construct()

protected LoggerInterface logger()

Returns a logger object.

Return Value

LoggerInterface

protected io()

Override Robo's IO function with our custom style.

protected printFile(string $file)

Print the contents of a file.

Parameters

string $file Full path to a file.

optionsetNotify()

registerShutdown(CommandData $commandData)

Parameters

CommandData $commandData

shutdown(CommandData $commandData)

Parameters

CommandData $commandData

static shutdownSend($msg, CommandData $commandData)

Prepares and dispatches notifications to delivery mechanisms.

You may avoid routing a message to secondary messaging mechanisms (e.g. audio), by direct use of the delivery functions.

Parameters

$msg
CommandData $commandData

static bool shutdownSendText($msg, CommandData $commandData)

Send text-based system notification.

This is the automatic, default behavior. It is intended for use with tools such as libnotify in Linux and Notification Center on OSX.

Parameters

$msg
CommandData $commandData

Return Value

bool TRUE on success, FALSE on failure

static bool isAllowed()

Identify if the given Drush request should trigger a notification.

Return Value

bool