src/EntityPackage.php
public function getFlattenedRequiredPackages()
    {
        $result = [];
        foreach ($this->getRequiredPackages() as $dependency) {
            $name          = $dependency->getPackage()->getName();
            $result[$name] = $dependency;
            $result        = array_merge($result, $dependency->getFlattenedRequiredPackages());
        }
        return $result;
    }
public function getFlattenedRequiredPackages()
    {
        $result = [];
        foreach ($this->getRequiredPackages() as $dependency) {
            $name          = $dependency->getPackage()->getName();
            $result[$name] = $dependency;
            $result        = array_merge($result, $dependency->getFlattenedRequiredPackages());
        }
        return $result;
    }
public function getFlattenedRequiredPackages ( ) { $ result = [ ] ; foreach ( $ this -> getRequiredPackages ( ) as $ dependency ) { $ name = $ dependency -> getPackage ( ) -> getName ( ) ; $ result [ $ name ] = $ dependency ; $ result = array_merge ( $ result , $ dependency -> getFlattenedRequiredPackages ( ) ) ; } return $ result ; }
Flattens the dependency tree of this package.
All the packages it directly or indirectly references will be uniquely in this list.
@return EntityPackage[]
Flattens the dependency tree of this package . All the packages it directly or indirectly references will be uniquely in this list .