src/Processor/IndexProcessor.php
public function update(IndexListener $listener)
    {
        $id    = Input::get('id');
        $model = $this->repository->find($id);
        $form  = $this->presenter->getForm($model);
        if (!$form->isValid()) {
            return $listener->updateValidationFailed($id, $form->getMessageBag());
        }
        try {
            $this->repository->updateNotification($id, Input::all());
        } catch (Exception $ex) {
            return $listener->updateFailed();
        }

        return $listener->updateSuccess();
    }
public function update(IndexListener $listener)
    {
        $id    = Input::get('id');
        $model = $this->repository->find($id);
        $form  = $this->presenter->getForm($model);
        if (!$form->isValid()) {
            return $listener->updateValidationFailed($id, $form->getMessageBag());
        }
        try {
            $this->repository->updateNotification($id, Input::all());
        } catch (Exception $ex) {
            return $listener->updateFailed();
        }

        return $listener->updateSuccess();
    }
public function update ( IndexListener $ listener ) { $ id = Input :: get ( 'id' ) ; $ model = $ this -> repository -> find ( $ id ) ; $ form = $ this -> presenter -> getForm ( $ model ) ; if ( ! $ form -> isValid ( ) ) { return $ listener -> updateValidationFailed ( $ id , $ form -> getMessageBag ( ) ) ; } try { $ this -> repository -> updateNotification ( $ id , Input :: all ( ) ) ; } catch ( Exception $ ex ) { return $ listener -> updateFailed ( ) ; } return $ listener -> updateSuccess ( ) ; }
updates notification notification

@param IndexListener $listener
@return RedirectResponse
updates notification notification