10000 Fix the example about overriding the getProjectDir method · symfony/symfony-docs@d2e3e6b · GitHub
[go: up one dir, main page]

Skip to content

Commit d2e3e6b

Browse files
authored
Fix the example about overriding the getProjectDir method
This method must return the canonical path for things to work fine everywhere.
1 parent 735ef0a commit d2e3e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deployment.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ kernel and return your project's root directory::
231231

232232
public function getProjectDir()
233233
{
234-
return __DIR__.'/..';
234+
return dirname(__DIR__);
235235
}
236236
}
237237

0 commit comments

Comments
 (0)
0