public function run()
 {
     if ($this->_config->getConfigFolder() == null) {
         $this->setConfigFolder('../config');
     }
     $this->_frontController = FrontController::getInstance();
     if ($this->_router instanceof IRouter) {
         $this->_frontController->setRouter($this->_router);
     } else {
         $this->_frontController->setRouter(new DefaultRouter());
     }
     $_sess = $this->_config->app['session'];
     if ($_sess['autostart']) {
         if ($_sess['type'] == 'native') {
             $s = new NativeSession($_sess['name'], $_sess['lifetime'], $_sess['path'], $_sess['domain'], $_sess['secure']);
             $this->_httpContext->setSession($s);
         }
     }
     $this->_identity->createUserTable();
     $this->_frontController->dispatch();
 }