class CollectionProcessHook implements ProcessResultInterface (View source)

The collection process hook is added to the annotation command hook manager in Runner::configureContainer(). This hook will be called every time a command runs. If the command result is a \Robo\Contract\TaskInterface (in particular, \Robo\Collection\Collection), then we run the collection, and return the result. We ignore results of any other type.

Methods

mixed
process(mixed $result, CommandData $commandData)

No description

Details

mixed process(mixed $result, CommandData $commandData)

No description

Parameters

mixed $result

Result to (potentially) be processed

CommandData $commandData

Reference to commandline arguments and options

Return Value

mixed $result