/** * @param int $id */ public function tableStopClick($id) { $worker = $this->workerManager->getWokrer($id); $this->workerManager->stopWorker($worker); $this->redirect('this'); }
public function handleStop() { $this->workerManager->stopWorker($this->getWorker()); $this->terminate(); }