1
0
mirror of https://github.com/danog/class-finder.git synced 2025-01-22 22:01:19 +01:00

Attempt to check more directories if an app root isn't found.

This commit is contained in:
Hayden Pierce 2019-02-18 17:38:36 -06:00
parent 30c4182c47
commit 1e68c78f5b

View File

@ -31,7 +31,7 @@ class AppConfig
$workingDirectory = str_replace('/vendor/haydenpierce/class-finder/src', '', $workingDirectory);
$directoryPathPieces = explode('/', $workingDirectory);
$appRoot = '/';
$appRoot = null;
do {
$path = implode('/', $directoryPathPieces) . '/composer.json';
if (file_exists($path)) {