PHP Класс Kraken\Container\ServiceProvider

Наследование: implements Kraken\Container\ServiceProviderInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$booted boolean
$provides string[]
$registered boolean
$requires string[]

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

Метод Описание
bootProvider ( ContainerInterface $container )
getProvides ( )
getRequires ( )
isBooted ( )
isRegistered ( )
registerProvider ( ContainerInterface $container )
unregisterProvider ( ContainerInterface $container )

Защищенные методы

Метод Описание
boot ( ContainerInterface $container ) Boot provider dependencies.
register ( ContainerInterface $container ) Register provider dependencies.
unregister ( ContainerInterface $container ) Unregister provider dependencies.

Приватные методы

Метод Описание
throwException ( Erro\Error | Exceptio\Exception $ex )

Описание методов

boot() защищенный Метод

This method should container code to fire when Provider is being booted. In comparison to ::register() method this will be fired after all Providers have been already registered.
protected boot ( ContainerInterface $container )
$container ContainerInterface

bootProvider() публичный Метод

public bootProvider ( ContainerInterface $container )
$container ContainerInterface

getProvides() публичный Метод

public getProvides ( )

getRequires() публичный Метод

public getRequires ( )

isBooted() публичный Метод

public isBooted ( )

isRegistered() публичный Метод

public isRegistered ( )

register() защищенный Метод

This method should contain code to fire when Provider is being registered.
protected register ( ContainerInterface $container )
$container ContainerInterface

registerProvider() публичный Метод

public registerProvider ( ContainerInterface $container )
$container ContainerInterface

unregister() защищенный Метод

This method should contain code to fire when Provider is being unregistered. All previously opened connectios, streams, files and other vulnerable resources opened in ::register() should be closed here.
protected unregister ( ContainerInterface $container )
$container ContainerInterface

unregisterProvider() публичный Метод

public unregisterProvider ( ContainerInterface $container )
$container ContainerInterface

Описание свойств

$booted защищенное свойство

protected bool $booted
Результат boolean

$provides защищенное свойство

protected string[] $provides
Результат string[]

$registered защищенное свойство

protected bool $registered
Результат boolean

$requires защищенное свойство

protected string[] $requires
Результат string[]