From 4f89612bf2bfb59c0962b8988a97d4c35b2c7b4b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 21 Sep 2016 17:00:02 +0200 Subject: [PATCH] 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()`. --- configuration/micro_kernel_trait.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 7c8efb40945..383360a2012 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -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'; } }