PHP 클래스 Elgg\Di\ServiceProvider

We extend the container because it allows us to document properties in the PhpDoc, which assists IDEs to auto-complete properties and understand the types returned. Extension allows us to keep the container generic.
상속: extends Elgg\Di\DiContainer
파일 보기 프로젝트 열기: elgg/elgg 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Config $config ) Constructor

보호된 메소드들

메소드 설명
resolveLoggerDependencies ( string $service_needed ) : mixed Returns the first requested service of the logger, events, and hooks. It sets the hooks and events up in the right order to prevent circular dependency.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Config $config )
$config Elgg\Config Elgg Config service

resolveLoggerDependencies() 보호된 메소드

Returns the first requested service of the logger, events, and hooks. It sets the hooks and events up in the right order to prevent circular dependency.
protected resolveLoggerDependencies ( string $service_needed ) : mixed
$service_needed string The service requested first
리턴 mixed