Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
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 | ||
Результат | void |
protected callActionMethod ( ) : void | ||
Результат | void |
protected errorAction ( ) : string | ||
Результат | string |
protected forwardToReferringRequest ( ) : void | ||
Результат | void |
public static getActionIgnoredValidationArguments ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
Результат | 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 | |
Результат | array | Array of method parameters by action name |
public static getActionValidateAnnotationData ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
Результат | array | Array of validate annotation parameters by action method name |
public static getActionValidationGroups ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
Результат | array | Array of validation groups by action method name |
protected getErrorFlashMessage ( ) : Neos\Error\Messages\Message | ||
Результат | Neos\Error\Messages\Message | The flash message or FALSE if no flash message should be set |
protected getFlattenedValidationErrorMessage ( ) : string | ||
Результат | string |
protected getInformationNeededForInitializeActionMethodValidators ( ) : array | ||
Результат | array |
public static getPublicActionMethods ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
Результат | array | Array of all public action method names, indexed by method name |
protected handleTargetNotFoundError ( ) : void | ||
Результат | void |
protected initializeAction ( ) : void | ||
Результат | void |
protected initializeActionMethodArguments ( ) : void | ||
Результат | void |
protected initializeActionMethodValidators ( ) : void | ||
Результат | void |
protected initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void | ||
$view | Neos\Flow\Mvc\View\ViewInterface | The view to be initialized |
Результат | void |
public injectSettings ( array $settings ) : void | ||
$settings | array | |
Результат | 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 |
Результат | void |
protected resolveActionMethodName ( ) : string | ||
Результат | string | Method name of the current action |
protected resolveView ( ) : Neos\Flow\Mvc\View\ViewInterface | ||
Результат | Neos\Flow\Mvc\View\ViewInterface | the resolved view |
protected resolveViewObjectName ( ) : mixed | ||
Результат | mixed | The fully qualified view object name or FALSE if no matching view could be found. |
protected string $actionMethodName | ||
Результат | string |
protected string $defaultViewImplementation | ||
Результат | string |
protected string $defaultViewObjectName | ||
Результат | string |
protected string $errorMethodName | ||
Результат | string |
protected MvcPropertyMappingConfigurationService,Neos\Flow\Mvc\Controller $mvcPropertyMappingConfigurationService | ||
Результат |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
Результат | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
Результат |
protected SystemLoggerInterface,Neos\Flow\Log $systemLogger | ||
Результат | Neos\Flow\Log\SystemLoggerInterface |
protected ViewInterface,Neos\Flow\Mvc\View $view | ||
Результат | Neos\Flow\Mvc\View\ViewInterface |
protected ViewConfigurationManager,Neos\Flow\Mvc $viewConfigurationManager | ||
Результат |
protected array $viewFormatToObjectNameMap | ||
Результат | array |
protected string $viewObjectNamePattern | ||
Результат | string |