Пример #1
0
 /**
  * @param string $key
  * @param array $configuration
  * @return void
  */
 public function createAction($key, array $configuration)
 {
     try {
         $this->presetRepository->add($key, $configuration);
         $this->addFlashMessage('Created a new preset.');
         $this->redirect('show', NULL, NULL, array('key' => $key));
     } catch (\Lightwerk\SurfCaptain\Service\Exception $e) {
         $this->handleException($e);
     } catch (\TYPO3\Flow\Http\Exception $e) {
         $this->handleException($e);
     }
 }