src/Plugin.php
protected function iterateDependencies(Package $package, $dev = false)
    {
        $deps = $dev ? $package->getDevRequires() : $package->getRequires();
        foreach (array_keys($deps) as $target) {
            if (isset($this->plainList[$target]) && empty($this->orderedList[$target])) {
                $this->iteratePackage($this->plainList[$target]);
            }
        }
    }
protected function iterateDependencies(Package $package, $dev = false)
    {
        $deps = $dev ? $package->getDevRequires() : $package->getRequires();
        foreach (array_keys($deps) as $target) {
            if (isset($this->plainList[$target]) && empty($this->orderedList[$target])) {
                $this->iteratePackage($this->plainList[$target]);
            }
        }
    }
protected function iterateDependencies ( Package $ package , $ dev = false ) { $ deps = $ dev ? $ package -> getDevRequires ( ) : $ package -> getRequires ( ) ; foreach ( array_keys ( $ deps ) as $ target ) { if ( isset ( $ this -> plainList [ $ target ] ) && empty ( $ this -> orderedList [ $ target ] ) ) { $ this -> iteratePackage ( $ this -> plainList [ $ target ] ) ; } } }
Iterates dependencies of the given package.
@param Package $package
@param bool $dev which dependencies to iterate: true - dev, default - general
Iterates dependencies of the given package .