Interface

ezpKernelHandler

interface ezpKernelHandler

Interface for kernel handlers

Methods

ezpKernelResult run()

Execution point for controller actions.

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

Runs a callback function in the kernel environment.

setUseExceptions(bool $useExceptions)

Sets whether to use exceptions inside the 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 21
public ezpKernelResult run()

Execution point for controller actions.

Returns false if not supported

Return Value

ezpKernelResult

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

Runs a callback function in the kernel environment.

This is useful to run eZ Publish 4.x code from a non-related context (like eZ Publish 5)

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 40
public setUseExceptions(bool $useExceptions)

Sets whether to use exceptions inside the kernel.

Parameters

bool $useExceptions

at line 48
public reInitialize()

Reinitializes the kernel environment.

at line 56
public bool hasServiceContainer()

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

Return Value

bool

at line 64
public ContainerInterface|null getServiceContainer()

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

Return Value

ContainerInterface|null