Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Fix cache and log directories
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed Jul 11, 2020
1 parent 1094fab commit 4dabf9d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
/composer.lock

# Ignore files created during tests
/tests/App/cache/
/tests/App/logs/
/tests/App/var/cache/
/tests/App/var/log/
/cov/

# Ignore Doxygen directory
Expand Down
16 changes: 16 additions & 0 deletions tests/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,20 @@ public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config.yml');
}

/**
* {@inheritdoc}
*/
public function getCacheDir()
{
return $this->getProjectDir().'/tests/App/var/cache/'.$this->environment;
}

/**
* {@inheritdoc}
*/
public function getLogDir()
{
return $this->getProjectDir().'/tests/App/var/log';
}
}

0 comments on commit 4dabf9d

Please sign in to comment.