Skip to content

Commit

Permalink
applied sf3 directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
issei-m committed Dec 14, 2015
1 parent fafbb0f commit 314aee8
Show file tree
Hide file tree
Showing 15 changed files with 2,888 additions and 59 deletions.
24 changes: 16 additions & 8 deletions .gitignore
@@ -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/
12 changes: 12 additions & 0 deletions app/AppKernel.php
Expand Up @@ -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');
Expand Down

0 comments on commit 314aee8

Please sign in to comment.