PHP Class Kraken\Core\Core

Inheritance: extends Kraken\Container\Container, implements Kraken\Core\CoreInterface
Show file Open project: kraken-php/framework Class Usage Examples

Protected Properties

Property Type Description
$bootConfig string[][]
$dataPath string
$serviceRegister Kraken\Container\ServiceRegister

Public Methods

Method Description
__construct ( string | null $dataPath = null )
__destruct ( )
boot ( )
config ( $config = null )
flushAliases ( )
flushProviders ( )
getAlias ( $alias )
getAliases ( )
getBasePath ( )
getDataDir ( )
getDataPath ( )
getDefaultAliases ( ) : string[] Return list of default Aliases.
getDefaultProviders ( ) : string[] Return list of default Providers.
getProvider ( $provider )
getProviders ( )
getServices ( )
getType ( )
getVersion ( )
registerAlias ( $alias, $interface )
registerAliases ( $interfaces )
registerProvider ( $provider )
registerProviders ( $providers )
unregisterAlias ( $alias )
unregisterProvider ( $provider )

Protected Methods

Method Description
bootProviders ( ) Boot providers.

Method Details

__construct() public method

public __construct ( string | null $dataPath = null )
$dataPath string | null

__destruct() public method

public __destruct ( )

boot() public method

public boot ( )

bootProviders() protected method

Boot providers.
protected bootProviders ( )

config() public method

public config ( $config = null )

flushAliases() public method

public flushAliases ( )

flushProviders() public method

public flushProviders ( )

getAlias() public method

public getAlias ( $alias )

getAliases() public method

public getAliases ( )

getBasePath() public method

public getBasePath ( )

getDataDir() public method

public getDataDir ( )

getDataPath() public method

public getDataPath ( )

getDefaultAliases() public method

Return list of default Aliases.
public getDefaultAliases ( ) : string[]
return string[]

getDefaultProviders() public method

Return list of default Providers.
public getDefaultProviders ( ) : string[]
return string[]

getProvider() public method

public getProvider ( $provider )

getProviders() public method

public getProviders ( )

getServices() public method

public getServices ( )

getType() public method

public getType ( )

getVersion() public method

public getVersion ( )

registerAlias() public method

public registerAlias ( $alias, $interface )

registerAliases() public method

public registerAliases ( $interfaces )

registerProvider() public method

public registerProvider ( $provider )

registerProviders() public method

public registerProviders ( $providers )

unregisterAlias() public method

public unregisterAlias ( $alias )

unregisterProvider() public method

public unregisterProvider ( $provider )

Property Details

$bootConfig protected property

protected string[][] $bootConfig
return string[][]

$dataPath protected property

protected string $dataPath
return string

$serviceRegister protected property

protected ServiceRegister,Kraken\Container $serviceRegister
return Kraken\Container\ServiceRegister