Skip to content

Commit

Permalink
replace dirname() call with ..
Browse files Browse the repository at this point in the history
Using `dirname(__DIR__)` is less readable than using `__DIR__.'/..'`.
Also, this is in line with what we use above in `configureRoutes()`.
  • Loading branch information
xabbuh committed Sep 21, 2016
1 parent 7be8b3f commit 4f89612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configuration/micro_kernel_trait.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ to hold the kernel. Now it looks like this::
// optional, to use the standard Symfony cache directory
public function getCacheDir()
{
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
return __DIR__.'/../var/cache/'.$this->getEnvironment();
}

// optional, to use the standard Symfony logs directory
public function getLogDir()
{
return dirname(__DIR__).'/var/logs';
return __DIR__.'/../var/logs';
}
}

Expand Down

0 comments on commit 4f89612

Please sign in to comment.