public function find(Composer $composer, NpmBridge $bridge): array
    {
        $packages = $composer->getRepositoryManager()->getLocalRepository()
            ->getPackages();

        $dependantPackages = [];

        foreach ($packages as $package) {
            if ($bridge->isDependantPackage($package, false)) {
                $dependantPackages[] = $package;
            }
        }

        return $dependantPackages;
    }
public function find(Composer $composer, NpmBridge $bridge): array
    {
        $packages = $composer->getRepositoryManager()->getLocalRepository()
            ->getPackages();

        $dependantPackages = [];

        foreach ($packages as $package) {
            if ($bridge->isDependantPackage($package, false)) {
                $dependantPackages[] = $package;
            }
        }

        return $dependantPackages;
    }
public function find ( Composer $ composer , NpmBridge $ bridge ) : array { $ packages = $ composer -> getRepositoryManager ( ) -> getLocalRepository ( ) -> getPackages ( ) ; $ dependantPackages = [ ] ; foreach ( $ packages as $ package ) { if ( $ bridge -> isDependantPackage ( $ package , false ) ) { $ dependantPackages [ ] = $ package ; } } return $ dependantPackages ; }
Find all NPM bridge enabled vendor packages.

@param Composer  $composer The Composer object for the root project.
@param NpmBridge $bridge   The bridge to use.

@return array<integer,PackageInterface> The list of NPM bridge enabled vendor packages.
Find all NPM bridge enabled vendor packages .