The default value did not resolve to the root path, but its parent directory. Now the cache directory will be in the same directory as 'vendor', i.e. the root directory of the project.
Note: As far as I understand this code right now, using this path may be unstable, as it highly depends on the current file location. If e.g. one would move the file, this path is not valid anymore. I would suggest to check for a constant or something similar to check, if the user provides a root path, e.g.ROOT.
The default value did not resolve to the root path, but its parent directory. Now the cache directory will be in the same directory as 'vendor', i.e. the root directory of the project.
Note: As far as I understand this code right now, using this path may be unstable, as it highly depends on the current file location. If e.g. one would move the file, this path is not valid anymore. I would suggest to check for a constant or something similar to check, if the user provides a root path, e.g.
ROOT
.