/** * Returns the CRUDControllerWorkerInterface instance for the current request * @return Worker\CRUDControllerWorkerInterface * @throws NotFoundHttpException */ protected function getWorker() { $worker = $this->CRUDRequest->getWorker(); if (!$worker) { throw new NotFoundHttpException(); } return $worker; }