PHP Class Kraken\Environment\Environment

Inheritance: implements Kraken\Environment\EnvironmentInterface
ファイルを表示 Open project: kraken-php/framework Class Usage Examples

Protected Properties

Property Type Description
$context Kraken\Runtime\RuntimeContextInterface
$invoker Kraken\Util\Invoker\InvokerInterface
$loader Kraken\Environment\Loader\Loader

Public Methods

Method Description
__construct ( Kraken\Runtime\RuntimeContextInterface $context, string $filePath = '' )
__destruct ( )
getEnv ( $name )
getOption ( $key )
registerErrorHandler ( callable $handler )
registerExceptionHandler ( callable $handler )
registerShutdownHandler ( callable $handler )
registerTerminationHandler ( callable $handler )
removeEnv ( $name )
removeOption ( $key )
setEnv ( $name, $value )
setOption ( $key, $val )

Protected Methods

Method Description
createInvoker ( ) : Kraken\Util\Invoker\InvokerInterface
createLoader ( string $filePath ) : Loader

Method Details

__construct() public method

public __construct ( Kraken\Runtime\RuntimeContextInterface $context, string $filePath = '' )
$context Kraken\Runtime\RuntimeContextInterface
$filePath string

__destruct() public method

public __destruct ( )

createInvoker() protected method

protected createInvoker ( ) : Kraken\Util\Invoker\InvokerInterface
return Kraken\Util\Invoker\InvokerInterface

createLoader() protected method

protected createLoader ( string $filePath ) : Loader
$filePath string
return Kraken\Environment\Loader\Loader

getEnv() public method

public getEnv ( $name )

getOption() public method

public getOption ( $key )

registerErrorHandler() public method

public registerErrorHandler ( callable $handler )
$handler callable

registerExceptionHandler() public method

public registerExceptionHandler ( callable $handler )
$handler callable

registerShutdownHandler() public method

public registerShutdownHandler ( callable $handler )
$handler callable

registerTerminationHandler() public method

public registerTerminationHandler ( callable $handler )
$handler callable

removeEnv() public method

public removeEnv ( $name )

removeOption() public method

public removeOption ( $key )

setEnv() public method

public setEnv ( $name, $value )

setOption() public method

public setOption ( $key, $val )

Property Details

$context protected_oe property

protected RuntimeContextInterface,Kraken\Runtime $context
return Kraken\Runtime\RuntimeContextInterface

$invoker protected_oe property

protected InvokerInterface,Kraken\Util\Invoker $invoker
return Kraken\Util\Invoker\InvokerInterface

$loader protected_oe property

protected Loader,Kraken\Environment\Loader $loader
return Kraken\Environment\Loader\Loader