public function __construct(SessionManager $session, Dispatcher $event) { $this->session = $session; $this->event = $event; }