PHP 클래스 Kraken\Container\Service\ServiceSorter

파일 보기 프로젝트 열기: kraken-php/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$instances Kraken\Container\ServiceProviderInterface[]
$obtainableIn string[]
$ordered bool[]
$pvds string[][]
$reqs string[][]

공개 메소드들

메소드 설명
__destruct ( )
sortProviders ( Kraken\Container\ServiceProviderInterface[] $providers ) : Kraken\Container\ServiceProviderInterface[] Analyze required and provided dependencies of providers and sort the list to ensure right order while resolving dependency tree.

비공개 메소드들

메소드 설명
orderProvider ( Kraken\Container\ServiceProviderInterface $provider ) : string[]
orderResource ( string $resourceName, &$localStack = [] ) : string[]

메소드 상세

__destruct() 공개 메소드

public __destruct ( )

sortProviders() 공개 메소드

Analyze required and provided dependencies of providers and sort the list to ensure right order while resolving dependency tree.
public sortProviders ( Kraken\Container\ServiceProviderInterface[] $providers ) : Kraken\Container\ServiceProviderInterface[]
$providers Kraken\Container\ServiceProviderInterface[]
리턴 Kraken\Container\ServiceProviderInterface[]

프로퍼티 상세

$instances 보호되어 있는 프로퍼티

protected ServiceProviderInterface[],Kraken\Container $instances
리턴 Kraken\Container\ServiceProviderInterface[]

$obtainableIn 보호되어 있는 프로퍼티

protected string[] $obtainableIn
리턴 string[]

$ordered 보호되어 있는 프로퍼티

protected bool[] $ordered
리턴 bool[]

$pvds 보호되어 있는 프로퍼티

protected string[][] $pvds
리턴 string[][]

$reqs 보호되어 있는 프로퍼티

protected string[][] $reqs
리턴 string[][]