프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$manifestData | array | ||
$packageStates | array | ||
$sortedPackages | array | ||
$unsortedPackages | array | The key is a package key, the value is "-1" if it is on stack for cycle detection; otherwise it is the number of times it was attempted to sort it already. |
메소드 | 설명 | |
---|---|---|
__construct ( array $packages, array $manifestData ) | ||
sort ( ) : array | Sorts the packages and returns the sorted packages array |
메소드 | 설명 | |
---|---|---|
packageRequirementIsComposerPackage ( string $requirement ) : boolean | Check whether the given package requirement (like "typo3/flow" or "php") is a composer package or not | |
sortListBefore ( string $packageKey, array $packagesToLoadBefore ) : integer | Tries to sort packages from the given list before the named package key. | |
sortPackage ( string $packageKey ) : boolean | Recursively sort dependencies of a package. This is a depth-first approach that recursively adds all dependent packages to the sorted list before adding the given package. Visited packages are flagged to break up cyclic dependencies. |
public __construct ( array $packages, array $manifestData ) | ||
$packages | array | The array of package states to order by dependencies |
$manifestData | array | The manifests of all given packages for reading dependencies |
protected packageRequirementIsComposerPackage ( string $requirement ) : boolean | ||
$requirement | string | the composer requirement string |
리턴 | boolean | TRUE if $requirement is a composer package (contains a slash), FALSE otherwise |
protected sortPackage ( string $packageKey ) : boolean | ||
$packageKey | string | Package key to process |
리턴 | boolean | true if package was sorted; false otherwise. |
protected array $unsortedPackages | ||
리턴 | array |