/** * Initialize Application. * * @return void */ protected function init() { parent::init(); $this->router = $this->container->get('Router'); $this->router->addRoutes($this->getConfig('routes')); $session = $this->container->get('Session'); $session->start(); // load providers $this->loadProviders($this->getConfig('http.providers')); // load events $this->loadEvents($this->getConfig('http.events')); }