Skip to content

Commit d973d0d

Browse files
committed
minor #6990 replace dirname() call with .. (xabbuh)
This PR was merged into the 3.1 branch. Discussion ---------- replace dirname() call with .. Using `dirname(__DIR__)` is less readable than using `__DIR__.'/..'`. Also, this is in line with what we use above in `configureRoutes()`. Commits ------- 4f89612 replace dirname() call with ..
2 parents 089214a + 4f89612 commit d973d0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configuration/micro_kernel_trait.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ to hold the kernel. Now it looks like this::
199199
// optional, to use the standard Symfony cache directory
200200
public function getCacheDir()
201201
{
202-
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
202+
return __DIR__.'/../var/cache/'.$this->getEnvironment();
203203
}
204204

205205
// optional, to use the standard Symfony logs directory
206206
public function getLogDir()
207207
{
208-
return dirname(__DIR__).'/var/logs';
208+
return __DIR__.'/../var/logs';
209209
}
210210
}
211211

0 commit comments

Comments
 (0)