public function process(CliEngine $engine, $invokes = 1, $params = array(), $isDefaultParam = false, $additionalContext = null)
{
// shorthand
$runtimeConfig = $additionalContext->getRuntimeConfig();
// are there any processes in the table?
if (!isset($runtimeConfig->processes)) {
// we're done
return new CliResult(0);
}
// let's walk through the table
foreach ($runtimeConfig->processes as $details) {
$this->killProcess($details->pid, $details->processName);
}
// all done
return new CliResult(CliResult::PROCESS_COMPLETE);
}