private static getInstalledComposerJson ( ) : |
||
return |
private static function getInstalledComposerJson()
{
$finder = new Finder();
$finder->files()->name('composer.json')->notPath('vendor/composer')->depth(2);
try {
$finder->in(['vendor']);
} catch (\InvalidArgumentException $e) {
// Composer has not had its autoloader dumped
}
return $finder;
}