AbstractServiceController
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 | $supportedMediaTypes | ||
protected ThrowableStorageInterface | $throwableStorage |
Methods
Set the locale according to the user settings
A preliminary error action for handling validation errors
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.
Details
protected void
initializeObject()
Set the locale according to the user settings
void
errorAction()
A preliminary error action for handling validation errors
void
processRequest(ActionRequest $request, ActionResponse $response)
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.
protected array
convertException(Exception $exception)
No description