before Task
Deprecated
Adds a closure to be called immediately before a task is executed. The task is passed to the closure as a parameter.
Deprecated
This method is not supported when configuration caching is enabled.
Parameters
closure
The closure to execute when a task is about to be executed.
Deprecated
Adds an action to be called immediately before a task is executed. The task is passed to the action as a parameter.
Deprecated
This method is not supported when configuration caching is enabled.
Since
3.1
Parameters
action
The action to execute when a task is about to be executed.