public function listenApplicationEvents(Listener\Application $listener)
    {
        $this->di
                ->get('eventsManager')
                ->attach('application', $listener, PHP_INT_MAX);
        return $this;
    }