LEtudiant\Composer\Installer\SharedPackageInstaller::isSourceDirUnused PHP Method

isSourceDirUnused() protected method

Detect if other project use the dependency by using the "packages.json" file
protected isSourceDirUnused ( Composer\Package\PackageInterface $package ) : boolean
$package Composer\Package\PackageInterface
return boolean
    protected function isSourceDirUnused(PackageInterface $package)
    {
        $usageData = $this->packageDataManager->getPackageUsage($package);
        return sizeof($usageData) <= 1;
    }