Свойство | Type | Description | |
---|---|---|---|
$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. |
Méthode | Description | |
---|---|---|
__construct ( array $packages, array $manifestData ) | ||
sort ( ) : array | Sorts the packages and returns the sorted packages array |
Méthode | Description | |
---|---|---|
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 |
Résultat | boolean | TRUE if $requirement is a composer package (contains a slash), FALSE otherwise |
protected sortPackage ( string $packageKey ) : boolean | ||
$packageKey | string | Package key to process |
Résultat | boolean | true if package was sorted; false otherwise. |
protected array $unsortedPackages | ||
Résultat | array |