Свойство | Тип | Описание | |
---|---|---|---|
$defaultProviders | array | Default application service providers. |
Метод | Описание | |
---|---|---|
__construct ( array $config ) | Creates a new instance of :php:class:Builder. | |
createContainer ( array $config ) : League\Container\ContainerInterface | Creates and returns a new instance of Container after adding $config to it. | |
registerProvider ( string | League\Container\ServiceProvider\ServiceProviderInterface $provider ) : |
Registers a service provider onto the container. | |
registerProviders ( array $providers = [] ) : |
Register default service providers onto the container. |
Метод | Описание | |
---|---|---|
createConfig ( array $config ) : |
Creates a :php:class:Config object from raw parameters. |
public __construct ( array $config ) | ||
$config | array |
protected createConfig ( array $config ) : |
||
$config | array | |
Результат |
public createContainer ( array $config ) : League\Container\ContainerInterface | ||
$config | array | |
Результат | League\Container\ContainerInterface |
public registerProvider ( string | League\Container\ServiceProvider\ServiceProviderInterface $provider ) : |
||
$provider | string | League\Container\ServiceProvider\ServiceProviderInterface | |
Результат |
public registerProviders ( array $providers = [] ) : |
||
$providers | array | |
Результат |
protected array $defaultProviders | ||
Результат | array |