PHP Class Kraken\Container\ServiceProvider

Inheritance: implements Kraken\Container\ServiceProviderInterface
Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Protected Properties

Свойство Type Description
$booted boolean
$provides string[]
$registered boolean
$requires string[]

Méthodes publiques

Méthode Description
bootProvider ( ContainerInterface $container )
getProvides ( )
getRequires ( )
isBooted ( )
isRegistered ( )
registerProvider ( ContainerInterface $container )
unregisterProvider ( ContainerInterface $container )

Méthodes protégées

Méthode Description
boot ( ContainerInterface $container ) Boot provider dependencies.
register ( ContainerInterface $container ) Register provider dependencies.
unregister ( ContainerInterface $container ) Unregister provider dependencies.

Private Methods

Méthode Description
throwException ( Erro\Error | Exceptio\Exception $ex )

Method Details

boot() protected méthode

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 méthode

public bootProvider ( ContainerInterface $container )
$container ContainerInterface

getProvides() public méthode

public getProvides ( )

getRequires() public méthode

public getRequires ( )

isBooted() public méthode

public isBooted ( )

isRegistered() public méthode

public isRegistered ( )

register() protected méthode

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

registerProvider() public méthode

public registerProvider ( ContainerInterface $container )
$container ContainerInterface

unregister() protected méthode

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 méthode

public unregisterProvider ( ContainerInterface $container )
$container ContainerInterface

Property Details

$booted protected_oe property

protected bool $booted
Résultat boolean

$provides protected_oe property

protected string[] $provides
Résultat string[]

$registered protected_oe property

protected bool $registered
Résultat boolean

$requires protected_oe property

protected string[] $requires
Résultat string[]