abstract class AbstractServiceController extends ActionController (View source)

Abstract Service Controller

Traits

A trait to add backend translation based on the backend users settings

Properties

protected Service $_localizationService from  BackendUserTranslationTrait
protected UserService $_userService from  BackendUserTranslationTrait
protected array<int, string> $supportedMediaTypes
protected ThrowableStorageInterface $throwableStorage2

Cant be named here $throwableStorage see https://github.com/neos/neos-development-collection/issues/3858

protected UserService $domainUserService

Methods

void
initializeObject()

Set the locale according to the user settings

never
errorAction()

A preliminary error action for handling validation errors

ResponseInterface
processRequest(ActionRequest $request)

Catch exceptions while processing an exception and respond to JSON format TODO: This is an explicit exception handling that will be replaced by format-enabled exception handlers.

array
convertException(Throwable $exception)

No description

Details

protected void initializeObject()

Set the locale according to the user settings

Return Value

void

protected never errorAction()

A preliminary error action for handling validation errors

Return Value

never

Exceptions

StopActionException

ResponseInterface processRequest(ActionRequest $request)

Catch exceptions while processing an exception and respond to JSON format TODO: This is an explicit exception handling that will be replaced by format-enabled exception handlers.

Parameters

ActionRequest $request

Return Value

ResponseInterface

protected array convertException(Throwable $exception)

No description

Parameters

Throwable $exception

Return Value

array