public function run() { if ($this->_config->getConfigFolder() == null) { $this->setConfigFolder('ConferenceScheduler/config'); } if ($this->_session == null) { $sessionInfo = $this->_config->app['session']; if ($sessionInfo['auto_start']) { if ($sessionInfo['type'] == 'native') { $this->_session = new NativeSession($sessionInfo['name'], $sessionInfo['lifetime'], $sessionInfo['path'], $sessionInfo['domain'], $sessionInfo['secure']); } } } }
public function run() { if ($this->_config->getConfigFolder() == null) { $this->setConfigFolder('ShoppingCart/Configurations'); } $this->_frontController = FrontController::getInstance(); if ($this->_router instanceof IRouter) { $this->_frontController->setRouter($this->_router); } if ($this->_router == null) { $this->_frontController->setRouter(new DefaultRouter()); } if ($this->_session == null) { $sessionInfo = $this->_config->app['session']; if ($sessionInfo['auto_start']) { if ($sessionInfo['type'] == 'native') { $this->_session = new DefaultSession($sessionInfo['name'], $sessionInfo['lifetime'], $sessionInfo['path'], $sessionInfo['domain'], $sessionInfo['secure']); } } } $this->_frontController->dispatch(); }