1
0
mirror of https://github.com/danog/class-finder.git synced 2025-01-23 06:11:26 +01:00

Skip skip out of the vendor directory to avoid finding my own composer.json

This commit is contained in:
Hayden Pierce 2018-08-04 10:29:00 -05:00
parent 90d821c6e8
commit dfb8db82e0

View File

@ -15,6 +15,7 @@ class ClassFinder
}
$workingDirectory = str_replace('\\', '/', __DIR__);
$workingDirectory = str_replace('/vendor/haydenpierce/src', '', $workingDirectory);
$directoryPathPieces = explode('/', $workingDirectory);
$appRoot = null;