Exemplo n.º 1
0
 /**
  * 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;
 }