$adapter
$adapter : \MrCrankHank\ConsoleAccess\Interfaces\AdapterInterface
Adapter to execute the functions on.
Class ConsoleAccess.
$adapter : \MrCrankHank\ConsoleAccess\Interfaces\AdapterInterface
Adapter to execute the functions on.
__construct(\MrCrankHank\ConsoleAccess\Interfaces\AdapterInterface $adapter)
ConsoleAccess constructor.
\MrCrankHank\ConsoleAccess\Interfaces\AdapterInterface | $adapter |
setPostExec(\Closure $function)
Set a function which will be executed directly after the command was executed. You can write something into an audit log for example.
The function will receive the command as first parameter and the exit status as second one.
\Closure | $function |