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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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