PHP Interface Kraken\Container\ServiceProviderInterface

Show file Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
bootProvider ( ContainerInterface $container ) Boot Provider.
getProvides ( ) : string[] Return list of Provider's provided dependencies.
getRequires ( ) : string[] Return list of Provider's required dependencies.
isBooted ( ) : boolean Return bool value representing whether Provider was already booted.
isRegistered ( ) : boolean Return bool value representing whether Provider was already registered.
registerProvider ( ContainerInterface $container ) Register Provider.
unregisterProvider ( ContainerInterface $container ) Unregister Provider

Method Details

bootProvider() public method

This method boots Provider and calls its ::boot() method.
public bootProvider ( ContainerInterface $container )
$container ContainerInterface

getProvides() public method

Return list of Provider's provided dependencies.
public getProvides ( ) : string[]
return string[]

getRequires() public method

Return list of Provider's required dependencies.
public getRequires ( ) : string[]
return string[]

isBooted() public method

Return bool value representing whether Provider was already booted.
public isBooted ( ) : boolean
return boolean

isRegistered() public method

Return bool value representing whether Provider was already registered.
public isRegistered ( ) : boolean
return boolean

registerProvider() public method

This method registers Provider and calls its ::register() method.
public registerProvider ( ContainerInterface $container )
$container ContainerInterface

unregisterProvider() public method

This method unregisters Provider and calls its ::unregister() method.
public unregisterProvider ( ContainerInterface $container )
$container ContainerInterface