/** * Sets the project root directory. * * @param string $rootDir The project root directory */ public function setRootDir($rootDir) { parent::setRootDir($rootDir); sfConfig::add(array('sf_app' => $this->getApplication(), 'sf_environment' => $this->getEnvironment(), 'sf_debug' => $this->isDebug())); $this->setAppDir(sfConfig::get('sf_apps_dir') . DIRECTORY_SEPARATOR . $this->getApplication()); }