PHP 클래스 Kraken\Container\ServiceProvider

상속: implements Kraken\Container\ServiceProviderInterface
파일 보기 프로젝트 열기: kraken-php/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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[]