Interface

ezpWebBasedKernelHandler

interface ezpWebBasedKernelHandler implements ezpKernelHandler

Interface for web-based kernel handlers

Methods

ezpKernelResult run()

Execution point for controller actions.

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

Runs a callback function in the kernel environment.

from ezpKernelHandler
setUseExceptions(bool $useExceptions)

Sets whether to use exceptions inside the kernel.

from ezpKernelHandler
reInitialize()

Reinitializes the kernel environment.

from ezpKernelHandler
bool hasServiceContainer()

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

from ezpKernelHandler
ContainerInterface|null getServiceContainer()

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

from ezpKernelHandler
setUsePagelayout(bool $usePagelayout)

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

Details

in ezpKernelHandler at line 21
public ezpKernelResult run()

Execution point for controller actions.

Returns false if not supported

Return Value

ezpKernelResult

in ezpKernelHandler 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

in ezpKernelHandler at line 40
public setUseExceptions(bool $useExceptions)

Sets whether to use exceptions inside the kernel.

Parameters

bool $useExceptions

in ezpKernelHandler at line 48
public reInitialize()

Reinitializes the kernel environment.

in ezpKernelHandler at line 56
public bool hasServiceContainer()

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

Return Value

bool

in ezpKernelHandler at line 64
public ContainerInterface|null getServiceContainer()

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

Return Value

ContainerInterface|null

at line 20
public setUsePagelayout(bool $usePagelayout)

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

Parameters

bool $usePagelayout