示例#1
0
 /**
  * @param int|null $id
  * @param Request  $request
  *
  * @return RedirectResponse|Response
  */
 public function formAction($id, Request $request)
 {
     if (is_null($id)) {
         throw new RouteNotFoundException();
     }
     return parent::formAction($id, $request);
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function formAction($id, Request $request, $menuId = null)
 {
     $this->menuId = $menuId;
     return parent::formAction($id, $request);
 }
示例#3
0
 /**
  * @param int|null $id
  * @param Request  $request
  * @param string   $type
  *
  * @return RedirectResponse|Response
  */
 public function formAction($id, Request $request, $type = null)
 {
     $this->type = $type;
     return parent::formAction($id, $request);
 }