PHP 클래스 Neos\Flow\Package\PackageOrderResolver

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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