PHP Class Kraken\Runtime\RuntimeContainer

Inheritance: extends Kraken\Event\EventEmitter, implements Kraken\Runtime\RuntimeContainerInterface
Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Protected Properties

Свойство Type Description
$model Kraken\Runtime\RuntimeModelInterface

Méthodes publiques

Méthode Description
__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 ( )

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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

__destruct() public méthode

public __destruct ( )

boot() protected méthode

This method
protected boot ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface
$core Kraken\Core\CoreInterface
Résultat Kraken\Runtime\RuntimeContainerInterface

config() protected méthode

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
Résultat array

construct() protected méthode

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
Résultat Kraken\Runtime\RuntimeContainerInterface

create() public méthode

public create ( )

destroy() public méthode

public destroy ( )

fail() public méthode

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

getAlias() public méthode

public getAlias ( )

getArgs() public méthode

public getArgs ( )

getCore() public méthode

public getCore ( )

getHash() public méthode

public getHash ( )

getLoop() public méthode

public getLoop ( )

getManager() public méthode

public getManager ( )

getModel() public méthode

public getModel ( )

getName() public méthode

public getName ( )

getParent() public méthode

public getParent ( )

getState() public méthode

public getState ( )

getType() public méthode

public getType ( )

internalBoot() public méthode

public internalBoot ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface
$core Kraken\Core\CoreInterface
Résultat Kraken\Runtime\RuntimeContainerInterface

internalConfig() public méthode

public internalConfig ( Kraken\Core\CoreInterface $core ) : array
$core Kraken\Core\CoreInterface
Résultat array

internalConstruct() public méthode

public internalConstruct ( Kraken\Core\CoreInterface $core ) : Kraken\Runtime\RuntimeContainerInterface
$core Kraken\Core\CoreInterface
Résultat Kraken\Runtime\RuntimeContainerInterface

isCreated() public méthode

public isCreated ( )

isDestroyed() public méthode

public isDestroyed ( )

isFailed() public méthode

public isFailed ( )

isStarted() public méthode

public isStarted ( )

isStopped() public méthode

public isStopped ( )

onAfterCreate() public méthode

public onAfterCreate ( callable $callback )
$callback callable

onAfterDestroy() public méthode

public onAfterDestroy ( callable $callback )
$callback callable

onAfterStart() public méthode

public onAfterStart ( callable $callback )
$callback callable

onAfterStop() public méthode

public onAfterStop ( callable $callback )
$callback callable

onBeforeCreate() public méthode

public onBeforeCreate ( callable $callback )
$callback callable

onBeforeDestroy() public méthode

public onBeforeDestroy ( callable $callback )
$callback callable

onBeforeStart() public méthode

public onBeforeStart ( callable $callback )
$callback callable

onBeforeStop() public méthode

public onBeforeStop ( callable $callback )
$callback callable

onCreate() public méthode

public onCreate ( callable $callback )
$callback callable

onDestroy() public méthode

public onDestroy ( callable $callback )
$callback callable

onStart() public méthode

public onStart ( callable $callback )
$callback callable

onStop() public méthode

public onStop ( callable $callback )
$callback callable

setCore() public méthode

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

start() public méthode

public start ( )

stop() public méthode

public stop ( )

succeed() public méthode

public succeed ( )

Property Details

$model protected_oe property

protected RuntimeModelInterface,Kraken\Runtime $model
Résultat Kraken\Runtime\RuntimeModelInterface