getEnvironment(), array('dev', 'test'))) { $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); } return $bundles; } public function registerContainerConfiguration(LoaderInterface $loader) { $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); } public function getLogDir() { return $this->rootDir.'/../logs/'.$this->environment.'/logs/'; } public function getCacheDir() { return $this->rootDir.'/../data/temp/'.$this->environment.'/cache/'; } // Custom paths public function getRealRootDir() { return realpath($this->rootDir.'/../').'/'; } public function getDataDir() { return $this->getRealRootDir().'/data/'; } public function getConfigDir() { return $this->getRealRootDir().'/config/'; } }