コード例 #1
0
ファイル: CRUDController.php プロジェクト: qimnet/crud-bundle
 /**
  * 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;
 }