mirror of
https://github.com/danog/class-finder.git
synced 2025-01-23 06:11:26 +01:00
Attempt to check more directories if an app root isn't found.
This commit is contained in:
parent
30c4182c47
commit
1e68c78f5b
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user