PHP Class Sulu\Component\HttpKernel\SuluKernel

Inheritance: extends Symfony\Component\HttpKernel\Kernel
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( string $environment, boolean $debug, string $suluContext = self::CONTEXT_ADMIN ) Overload the parent constructor method to add an additional constructor argument.

Protected Methods

Method Description
getContext ( ) Return the application context.
getKernelParameters ( )
setContext ( $context ) Set the context.

Method Details

__construct() public method

public __construct ( string $environment, boolean $debug, string $suluContext = self::CONTEXT_ADMIN )
$environment string
$debug boolean
$suluContext string The Sulu context (self::CONTEXT_ADMIN, self::CONTEXT_WEBSITE)

getContext() protected method

The context indicates to the runtime code which front controller has been accessed (e.g. website or admin)
protected getContext ( )

getKernelParameters() protected method

protected getKernelParameters ( )

setContext() protected method

Set the context.
protected setContext ( $context )