PHP 클래스 Kraken\Runtime\RuntimeContainer

상속: extends Kraken\Event\EventEmitter, implements Kraken\Runtime\RuntimeContainerInterface
파일 보기 프로젝트 열기: kraken-php/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$model Kraken\Runtime\RuntimeModelInterface

공개 메소드들

메소드 설명
__construct ( string $parent, string $alias, string $name, string[] $args = [] )
__destruct ( )
create ( )
destroy ( )
fail ( $ex, $params = [] )
getAlias ( )
getArgs ( )
getCore ( )
getHash ( )
getLoop ( )
getManager ( )
getModel ( )
getName ( )
getParent ( )
getState ( )
getType ( )
internalBoot ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface
internalConfig ( Kraken\Core\CoreInterface $core ) : array
internalConstruct ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface
isCreated ( )
isDestroyed ( )
isFailed ( )
isStarted ( )
isStopped ( )
onAfterCreate ( callable $callback )
onAfterDestroy ( callable $callback )
onAfterStart ( callable $callback )
onAfterStop ( callable $callback )
onBeforeCreate ( callable $callback )
onBeforeDestroy ( callable $callback )
onBeforeStart ( callable $callback )
onBeforeStop ( callable $callback )
onCreate ( callable $callback )
onDestroy ( callable $callback )
onStart ( callable $callback )
onStop ( callable $callback )
setCore ( Kraken\Core\CoreInterface $core = null )
start ( )
stop ( )
succeed ( )

보호된 메소드들

메소드 설명
boot ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface This method will be called on container boot. It should contain tweaks to services and providers.
config ( Kraken\Core\CoreInterface $core ) : array This method will be called before container boot. It should contain and return additional configurations.
construct ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface This method will be called on container construction. It should contain logic to be fired after booting up.

메소드 상세

__construct() 공개 메소드

public __construct ( string $parent, string $alias, string $name, string[] $args = [] )
$parent string
$alias string
$name string
$args string[]

__destruct() 공개 메소드

public __destruct ( )

boot() 보호된 메소드

This method
protected boot ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface
$core Kraken\Core\CoreInterface
리턴 Kraken\Runtime\RuntimeContainerInterface

config() 보호된 메소드

This method will be called before container boot. It should contain and return additional configurations.
protected config ( Kraken\Core\CoreInterface $core ) : array
$core Kraken\Core\CoreInterface
리턴 array

construct() 보호된 메소드

This method will be called on container construction. It should contain logic to be fired after booting up.
protected construct ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface
$core Kraken\Core\CoreInterface
리턴 Kraken\Runtime\RuntimeContainerInterface

create() 공개 메소드

public create ( )

destroy() 공개 메소드

public destroy ( )

fail() 공개 메소드

public fail ( $ex, $params = [] )

getAlias() 공개 메소드

public getAlias ( )

getArgs() 공개 메소드

public getArgs ( )

getCore() 공개 메소드

public getCore ( )

getHash() 공개 메소드

public getHash ( )

getLoop() 공개 메소드

public getLoop ( )

getManager() 공개 메소드

public getManager ( )

getModel() 공개 메소드

public getModel ( )

getName() 공개 메소드

public getName ( )

getParent() 공개 메소드

public getParent ( )

getState() 공개 메소드

public getState ( )

getType() 공개 메소드

public getType ( )

internalBoot() 공개 메소드

public internalBoot ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface
$core Kraken\Core\CoreInterface
리턴 Kraken\Runtime\RuntimeContainerInterface

internalConfig() 공개 메소드

public internalConfig ( Kraken\Core\CoreInterface $core ) : array
$core Kraken\Core\CoreInterface
리턴 array

internalConstruct() 공개 메소드

public internalConstruct ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface
$core Kraken\Core\CoreInterface
리턴 Kraken\Runtime\RuntimeContainerInterface

isCreated() 공개 메소드

public isCreated ( )

isDestroyed() 공개 메소드

public isDestroyed ( )

isFailed() 공개 메소드

public isFailed ( )

isStarted() 공개 메소드

public isStarted ( )

isStopped() 공개 메소드

public isStopped ( )

onAfterCreate() 공개 메소드

public onAfterCreate ( callable $callback )
$callback callable

onAfterDestroy() 공개 메소드

public onAfterDestroy ( callable $callback )
$callback callable

onAfterStart() 공개 메소드

public onAfterStart ( callable $callback )
$callback callable

onAfterStop() 공개 메소드

public onAfterStop ( callable $callback )
$callback callable

onBeforeCreate() 공개 메소드

public onBeforeCreate ( callable $callback )
$callback callable

onBeforeDestroy() 공개 메소드

public onBeforeDestroy ( callable $callback )
$callback callable

onBeforeStart() 공개 메소드

public onBeforeStart ( callable $callback )
$callback callable

onBeforeStop() 공개 메소드

public onBeforeStop ( callable $callback )
$callback callable

onCreate() 공개 메소드

public onCreate ( callable $callback )
$callback callable

onDestroy() 공개 메소드

public onDestroy ( callable $callback )
$callback callable

onStart() 공개 메소드

public onStart ( callable $callback )
$callback callable

onStop() 공개 메소드

public onStop ( callable $callback )
$callback callable

setCore() 공개 메소드

public setCore ( Kraken\Core\CoreInterface $core = null )
$core Kraken\Core\CoreInterface

start() 공개 메소드

public start ( )

stop() 공개 메소드

public stop ( )

succeed() 공개 메소드

public succeed ( )

프로퍼티 상세

$model 보호되어 있는 프로퍼티

protected RuntimeModelInterface,Kraken\Runtime $model
리턴 Kraken\Runtime\RuntimeModelInterface