/** * @param MvcAuthEvent $mvcAuthEvent * @param EventManagerInterface $events * @param AuthenticationService $authentication */ public function __construct(MvcAuthEvent $mvcAuthEvent, EventManagerInterface $events, AuthenticationService $authentication) { $this->attach($events); $mvcAuthEvent->setTarget($this); $this->mvcAuthEvent = $mvcAuthEvent; $this->events = $events; $this->authentication = $authentication; }