From d2e3e6b99afbe26d6f3ff6670809f5aa146398d5 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 27 Mar 2019 16:53:19 +0100 Subject: [PATCH] Fix the example about overriding the getProjectDir method This method must return the canonical path for things to work fine everywhere. --- deployment.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment.rst b/deployment.rst index 9023d5e28a3..7f64175376f 100644 --- a/deployment.rst +++ b/deployment.rst @@ -231,7 +231,7 @@ kernel and return your project's root directory:: public function getProjectDir() { - return __DIR__.'/..'; + return dirname(__DIR__); } }