Property | Type | Description | |
---|---|---|---|
$actionMethodName | string | Name of the action method | |
$defaultViewImplementation | string | ||
$defaultViewObjectName | string | The default view object to use if none of the resolved views can render a response for the current request. | |
$errorMethodName | string | Name of the special error action method which is called in case of errors | |
$mvcPropertyMappingConfigurationService | |||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$reflectionService | |||
$settings | array | ||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | ||
$view | Neos\Flow\Mvc\View\ViewInterface | The current view, as resolved by resolveView() | |
$viewConfigurationManager | |||
$viewFormatToObjectNameMap | array | Example: array('html' => 'MyCompany\MyApp\MyHtmlView', 'json' => 'MyCompany\... | |
$viewObjectNamePattern | string | Pattern after which the view object name is built if no format-specific view could be resolved. |
Method | Description | |
---|---|---|
getActionIgnoredValidationArguments ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
getActionMethodParameters ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | Returns a map of action method names and their parameters. | |
getActionValidateAnnotationData ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | Returns a map of action method names and their validation parameters. | |
getActionValidationGroups ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | Returns a map of action method names and their validation groups. | |
getPublicActionMethods ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
injectSettings ( array $settings ) : void | ||
processRequest ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response ) : void | Handles a request. The result output is returned by altering the given response. |
Method | Description | |
---|---|---|
addErrorFlashMessage ( ) : void | If an error occurred during this request, this adds a flash message describing the error to the flash message container. | |
callActionMethod ( ) : void | Calls the specified action method and passes the arguments. | |
errorAction ( ) : string | A special action which is called if the originally intended action could not be called, for example if the arguments were not valid. | |
forwardToReferringRequest ( ) : void | If information on the request before the current request was sent, this method forwards back to the originating request. This effectively ends processing of the current request, so do not call this method before you have finished the necessary business logic! | |
getErrorFlashMessage ( ) : Neos\Error\Messages\Message | A template method for displaying custom error flash messages, or to display no flash message at all on errors. Override this to customize the flash message in your action controller. | |
getFlattenedValidationErrorMessage ( ) : string | Returns a string containing all validation errors separated by PHP_EOL. | |
getInformationNeededForInitializeActionMethodValidators ( ) : array | This is a helper method purely used to make initializeActionMethodValidators() testable without mocking static methods. | |
handleTargetNotFoundError ( ) : void | Checks if the arguments validation result contain errors of type TargetNotFoundError and throws a TargetNotFoundException if that's the case for a top-level object. | |
initializeAction ( ) : void | Initializes the controller before invoking an action method. | |
initializeActionMethodArguments ( ) : void | Implementation of the arguments initialization in the action controller: Automatically registers arguments of the current action | |
initializeActionMethodValidators ( ) : void | Adds the needed validators to the Arguments: | |
initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void | Initializes the view before invoking an action method. | |
resolveActionMethodName ( ) : string | Resolves and checks the current action method name | |
resolveView ( ) : Neos\Flow\Mvc\View\ViewInterface | Prepares a view for the current action and stores it in $this->view. | |
resolveViewObjectName ( ) : mixed | Determines the fully qualified view object name. |
protected addErrorFlashMessage ( ) : void | ||
return | void |
protected callActionMethod ( ) : void | ||
return | void |
protected errorAction ( ) : string | ||
return | string |
protected forwardToReferringRequest ( ) : void | ||
return | void |
public static getActionIgnoredValidationArguments ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
return | array | Array of argument names as key by action method name |
public static getActionMethodParameters ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
return | array | Array of method parameters by action name |
public static getActionValidateAnnotationData ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
return | array | Array of validate annotation parameters by action method name |
public static getActionValidationGroups ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
return | array | Array of validation groups by action method name |
protected getErrorFlashMessage ( ) : Neos\Error\Messages\Message | ||
return | Neos\Error\Messages\Message | The flash message or FALSE if no flash message should be set |
protected getFlattenedValidationErrorMessage ( ) : string | ||
return | string |
protected getInformationNeededForInitializeActionMethodValidators ( ) : array | ||
return | array |
public static getPublicActionMethods ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
return | array | Array of all public action method names, indexed by method name |
protected handleTargetNotFoundError ( ) : void | ||
return | void |
protected initializeAction ( ) : void | ||
return | void |
protected initializeActionMethodArguments ( ) : void | ||
return | void |
protected initializeActionMethodValidators ( ) : void | ||
return | void |
protected initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void | ||
$view | Neos\Flow\Mvc\View\ViewInterface | The view to be initialized |
return | void |
public injectSettings ( array $settings ) : void | ||
$settings | array | |
return | void |
public processRequest ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response ) : void | ||
$request | Neos\Flow\Mvc\RequestInterface | The request object |
$response | Neos\Flow\Mvc\ResponseInterface | The response, modified by this handler |
return | void |
protected resolveActionMethodName ( ) : string | ||
return | string | Method name of the current action |
protected resolveView ( ) : Neos\Flow\Mvc\View\ViewInterface | ||
return | Neos\Flow\Mvc\View\ViewInterface | the resolved view |
protected resolveViewObjectName ( ) : mixed | ||
return | mixed | The fully qualified view object name or FALSE if no matching view could be found. |
protected string $actionMethodName | ||
return | string |
protected string $defaultViewImplementation | ||
return | string |
protected string $defaultViewObjectName | ||
return | string |
protected string $errorMethodName | ||
return | string |
protected MvcPropertyMappingConfigurationService,Neos\Flow\Mvc\Controller $mvcPropertyMappingConfigurationService | ||
return |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
return | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
return |
protected SystemLoggerInterface,Neos\Flow\Log $systemLogger | ||
return | Neos\Flow\Log\SystemLoggerInterface |
protected ViewInterface,Neos\Flow\Mvc\View $view | ||
return | Neos\Flow\Mvc\View\ViewInterface |
protected ViewConfigurationManager,Neos\Flow\Mvc $viewConfigurationManager | ||
return |
protected array $viewFormatToObjectNameMap | ||
return | array |
protected string $viewObjectNamePattern | ||
return | string |