eZ Publish Community Project (Legacy Stack) 2013.4
Class

ezpKernelWeb

class ezpKernelWeb implements ezpKernelHandler

Provides a kernel handler in web context

Allows kernel to be executed as Controller via run()

Methods

__construct(array $settings = array())

Constructs an ezpKernel instance

ezpKernelResult run()

Execution point for controller actions

mixed runCallback(Closure $callback, bool $postReinitialize = true)

Run a callback function in legacy environment

setUseExceptions(bool $useExceptions)

Sets whether to use exceptions in legacy kernel.

reInitialize()

Reinitializes the kernel environment.

bool hasServiceContainer()

Checks whether the kernel handler has the Symfony service container container or not.

ContainerInterface|null getServiceContainer()

Returns the Symfony service container if it has been injected, otherwise returns null.

Details

at line 111
public __construct(array $settings = array())

Constructs an ezpKernel instance

Parameters

array $settings

at line 291
public ezpKernelResult run()

Execution point for controller actions

Return Value

ezpKernelResult

at line 1188
public mixed runCallback(Closure $callback, bool $postReinitialize = true)

Run a callback function in legacy environment

Parameters

Closure $callback
bool $postReinitialize Default is true. If set to false, the kernel environment will not be reinitialized. This can be useful to optimize several calls to the kernel within the same context.

Return Value

mixed The result of the callback

at line 1215
public setUseExceptions(bool $useExceptions)

Sets whether to use exceptions in legacy kernel.

Parameters

bool $useExceptions

at line 1223
public reInitialize()

Reinitializes the kernel environment.

at line 1234
public bool hasServiceContainer()

Checks whether the kernel handler has the Symfony service container container or not.

Return Value

bool

at line 1245
public ContainerInterface|null getServiceContainer()

Returns the Symfony service container if it has been injected, otherwise returns null.

Return Value

ContainerInterface|null