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'; } }