public function invoke(Presenters\Token $presenter, RepositoryContainer $orm) { $us = new Rme\Unsubscribe($this->user->email, $this->emailType); $orm->unsubscribes->attach($us); $orm->flush(); $presenter->flashSuccess('unsubscribe'); $presenter->redirect('Profile:'); }
public function invoke(Presenters\Token $presenter, RepositoryContainer $orm) { $presenter->login($this->user); $this->studentInvite->setAccepted(); $orm->flush(); $presenter->flashSuccess('student.approveMentor'); $presenter->redirect('Profile:'); }
public function invoke(Presenters\Token $presenter) { $presenter->login($this->user); $presenter->flashSuccess('auth.flash.login.returning', ['name' => $this->user->firstName]); $presenter->redirect('Profile:'); }