original_string: public function store(IndexListener $listener)
      {
          $model = $this->repository->makeModel()->getModel();
          $form  = $this->presenter->getForm($model)->onCreate();
          if (!$form->isValid()) {
              return $listener->storeValidationFailed($form->getMessageBag());
          }
          try {
              $this->repository->store(Input::all());
          } catch (Exception $ex) {
              return $listener->createFailed();
          }
          return $listener->createSuccess();
      }
code: public function store(IndexListener $listener)
      {
          $model = $this->repository->makeModel()->getModel();
          $form  = $this->presenter->getForm($model)->onCreate();
          if (!$form->isValid()) {
              return $listener->storeValidationFailed($form->getMessageBag());
          }
          try {
              $this->repository->store(Input::all());
          } catch (Exception $ex) {
              return $listener->createFailed();
          }
          return $listener->createSuccess();
      }
code_tokens: public function store ( IndexListener $ listener ) { $ model = $ this -> repository -> makeModel ( ) -> getModel ( ) ; $ form = $ this -> presenter -> getForm ( $ model ) -> onCreate ( ) ; if ( ! $ form -> isValid ( ) ) { return $ listener -> storeValidationFailed ( $ form -> getMessageBag ( ) ) ; } try { $ this -> repository -> store ( Input :: all ( ) ) ; } catch ( Exception $ ex ) { return $ listener -> createFailed ( ) ; } return $ listener -> createSuccess ( ) ; }
docstring: store new notification notification
  
  @param IndexListener $listener
  @return RedirectResponse
docstring_tokens: store new notification notification