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::
47
47
Project Directory
48
48
~~~~~~~~~~~~~~~~~
49
49
50
- **type **: ``string `` **default **: the directory of the project ``composer.json ``
50
+ **type **: ``string `` **default **: the directory of the project's ``composer.json ``
51
51
52
52
This returns the absolute path of the root directory of your Symfony project,
53
53
which is used by applications to perform operations with file paths relative to
@@ -75,6 +75,8 @@ method to return the right project directory::
75
75
76
76
public function getProjectDir(): string
77
77
{
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'
78
80
return \dirname(__DIR__);
79
81
}
80
82
}
You can’t perform that action at this time.
0 commit comments