Skip to content
Permalink
Browse files

applied sf3 directory structure

  • Loading branch information...
issei-m committed Dec 14, 2015
1 parent fafbb0f commit 314aee831d9788be6ca76e7239b0ec8f08c216f0
@@ -1,11 +1,19 @@
/app/bootstrap.php.cache
/app/cache/*
!app/cache/.gitkeep
/bin/*
!/bin/console
!/bin/symfony_requirements
/app/config/parameters.yml
/app/logs/*
!app/logs/.gitkeep
/app/phpunit.xml
/bin/
/composer.phar
/build/
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php
/vendor/
/web/bundles/
@@ -28,6 +28,18 @@ public function registerBundles()
return $bundles;
}
public function getRootDir()
{
return __DIR__;
}
public function getCacheDir()
{
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
}
public function getLogDir()
{
return dirname(__DIR__).'/var/logs';
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
Oops, something went wrong.

0 comments on commit 314aee8

Please sign in to comment.
You can’t perform that action at this time.