public function edit(BannedEmailListener $listener, $id)
    {
        $bannedEmail = $this->repository->findById($id);

        if (!$bannedEmail) {
            return $listener->notFound($id);
        }

        $form = $this->presenter->form($bannedEmail);

        $this->dispatcher->fire('antares.form: ban_management.bannedemails', [$bannedEmail, $form]);
        $this->dispatcher->fire('antares.form: foundation.ban_management.bannedemails', [$bannedEmail, $form, 'foundation.ban_management']);

        return $listener->showEditForm(compact('bannedEmail', 'form'));
    }
public function edit(BannedEmailListener $listener, $id)
    {
        $bannedEmail = $this->repository->findById($id);

        if (!$bannedEmail) {
            return $listener->notFound($id);
        }

        $form = $this->presenter->form($bannedEmail);

        $this->dispatcher->fire('antares.form: ban_management.bannedemails', [$bannedEmail, $form]);
        $this->dispatcher->fire('antares.form: foundation.ban_management.bannedemails', [$bannedEmail, $form, 'foundation.ban_management']);

        return $listener->showEditForm(compact('bannedEmail', 'form'));
    }
public function edit ( BannedEmailListener $ listener , $ id ) { $ bannedEmail = $ this -> repository -> findById ( $ id ) ; if ( ! $ bannedEmail ) { return $ listener -> notFound ( $ id ) ; } $ form = $ this -> presenter -> form ( $ bannedEmail ) ; $ this -> dispatcher -> fire ( 'antares.form: ban_management.bannedemails' , [ $ bannedEmail , $ form ] ) ; $ this -> dispatcher -> fire ( 'antares.form: foundation.ban_management.bannedemails' , [ $ bannedEmail , $ form , 'foundation.ban_management' ] ) ; return $ listener -> showEditForm ( compact ( 'bannedEmail' , 'form' ) ) ; }
Creates form for the editing banned email.

@param BannedEmailListener $listener
@param int $id
@return mixed
Creates form for the editing banned email .