Class

ezpKernelWeb

class ezpKernelWeb implements ezpWebBasedKernelHandler

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.

setUsePagelayout(bool $usePagelayout)

Allows user to avoid executing the pagelayout template when running the kernel

Details

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

Constructs an ezpKernel instance

Parameters

array $settings

at line 311
public ezpKernelResult run()

Execution point for controller actions

Return Value

ezpKernelResult

at line 1215
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 1251
public setUseExceptions(bool $useExceptions)

Sets whether to use exceptions in legacy kernel.

Parameters

bool $useExceptions

at line 1259
public reInitialize()

Reinitializes the kernel environment.

at line 1270
public bool hasServiceContainer()

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

Return Value

bool

at line 1281
public ContainerInterface|null getServiceContainer()

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

Return Value

ContainerInterface|null

at line 1291
public setUsePagelayout(bool $usePagelayout)

Allows user to avoid executing the pagelayout template when running the kernel

Parameters

bool $usePagelayout