File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ charset::
4747Project Directory
4848~~~~~~~~~~~~~~~~~
4949
50- **type **: ``string `` **default **: the directory of the project ``composer.json ``
50+ **type **: ``string `` **default **: the directory of the project's ``composer.json ``
5151
5252This returns the absolute path of the root directory of your Symfony project,
5353which is used by applications to perform operations with file paths relative to
@@ -75,6 +75,8 @@ method to return the right project directory::
7575
7676 public function getProjectDir(): string
7777 {
78+ // when defining a hardcoded string, don't add the trailing slash to the path
79+ // e.g. '/home/user/my_project', '/app', '/var/www/example.com'
7880 return \dirname(__DIR__);
7981 }
8082 }
You can’t perform that action at this time.
0 commit comments