Class

ezpKernelRest

class ezpKernelRest implements ezpKernelHandler

File containing the ezpKernelRest class.

Methods

__construct(array $settings = array(), null $responseWriterClass = null)

static mixed getResponse()

static  setResponse(mixed $response)

ezpKernelResult run()

Execution point for controller actions.

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

Not supported by ezpKernelTreeMenu

setUseExceptions(bool $useExceptions)

Sets whether to use exceptions inside the kernel.

void 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 54
public __construct(array $settings = array(), null $responseWriterClass = null)

Parameters

array $settings
null $responseWriterClass Name of the ezpRestHttpResponseWriter implementation to use during request

at line 165
static public mixed getResponse()

Return Value

mixed

at line 173
static public setResponse(mixed $response)

Parameters

mixed $response

at line 184
public ezpKernelResult run()

Execution point for controller actions.

Returns false if not supported

Return Value

ezpKernelResult

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

Not supported by ezpKernelTreeMenu

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

Exceptions

RuntimeException

at line 208
public setUseExceptions(bool $useExceptions)

Sets whether to use exceptions inside the kernel.

Parameters

bool $useExceptions

at line 218
public void reInitialize()

Reinitializes the kernel environment.

Return Value

void

at line 241
public bool hasServiceContainer()

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

Return Value

bool

at line 252
public ContainerInterface|null getServiceContainer()

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

Return Value

ContainerInterface|null