1
0
mirror of https://github.com/danog/class-finder.git synced 2024-11-29 20:18:59 +01:00

Fix working directory

This commit is contained in:
Daniil Gentili 2020-10-13 09:26:17 +02:00
parent ad3c854638
commit fb18493be6
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -23,7 +23,7 @@ class AppConfig
$appRoot = $this->appRoot;
} else {
$workingDirectory = str_replace('\\', '/', __DIR__);
$workingDirectory = str_replace('/vendor/haydenpierce/class-finder/src', '', $workingDirectory);
$workingDirectory = str_replace('/vendor/danog/class-finder/src', '', $workingDirectory);
$directoryPathPieces = explode('/', $workingDirectory);
$appRoot = null;