Esempio n. 1
0
 /**
  * @param array  $formData
  * @param string $path
  * @param int    $seoId
  *
  * @return \Symfony\Component\HttpFoundation\RedirectResponse
  */
 protected function executePost(array $formData, $path, $seoId)
 {
     return $this->actionHelper->handleEditPostAction(function () use($formData, $path, $seoId) {
         $this->adminFormValidation->setUriAlias($path)->validate($formData);
         return $this->seoModel->save($formData, $seoId);
     });
 }
Esempio n. 2
0
 /**
  * @param array $formData
  *
  * @return \Symfony\Component\HttpFoundation\RedirectResponse
  */
 protected function executePost(array $formData)
 {
     return $this->actionHelper->handleCreatePostAction(function () use($formData) {
         $this->adminFormValidation->validate($formData);
         return $this->seoModel->save($formData);
     });
 }