PHP Класс Neos\Flow\Package\PackageOrderResolver

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Описание методов

__construct() публичный Метод

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

packageRequirementIsComposerPackage() защищенный Метод

Check whether the given package requirement (like "typo3/flow" or "php") is a composer package or not
protected packageRequirementIsComposerPackage ( string $requirement ) : boolean
$requirement string the composer requirement string
Результат boolean TRUE if $requirement is a composer package (contains a slash), FALSE otherwise

sort() публичный Метод

Sorts the packages and returns the sorted packages array
public sort ( ) : array
Результат array

sortListBefore() защищенный Метод

Ignores non existing packages and any composer key without "/" (eg. "php").
protected sortListBefore ( string $packageKey, array $packagesToLoadBefore ) : integer
$packageKey string
$packagesToLoadBefore array
Результат integer

sortPackage() защищенный Метод

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.
protected sortPackage ( string $packageKey ) : boolean
$packageKey string Package key to process
Результат boolean true if package was sorted; false otherwise.

Описание свойств

$manifestData защищенное свойство

protected array $manifestData
Результат array

$packageStates защищенное свойство

protected array $packageStates
Результат array

$sortedPackages защищенное свойство

protected array $sortedPackages
Результат array

$unsortedPackages защищенное свойство

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.
protected array $unsortedPackages
Результат array