RequestBuilder
Read onlyYes
Builds an extbase web request.
only to be used within Extbase, not part of TYPO3 Core API.
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
Methods
- __construct() : mixed
- build() : RequestInterface
- Decorate a PSR-7 request as extbase web Request with the extbase attribute.
- loadDefaultValues() : RequestBuilderDefaultValues
- resolveActionName() : non-empty-string
- Returns the current actionName extracted from given $parameters.
- resolveControllerClassName() : class-string
- Returns the current ControllerName extracted from given $parameters.
Properties
$configurationManager
protected
ConfigurationManagerInterface
$configurationManager
$extensionService
protected
ExtensionService
$extensionService
Methods
__construct()
public
__construct(ConfigurationManagerInterface $configurationManager, ExtensionService $extensionService) : mixed
Parameters
- $configurationManager : ConfigurationManagerInterface
- $extensionService : ExtensionService
build()
Decorate a PSR-7 request as extbase web Request with the extbase attribute.
public
build(ServerRequestInterface $mainRequest) : RequestInterface
Parameters
- $mainRequest : ServerRequestInterface
Return values
RequestInterfaceloadDefaultValues()
protected
loadDefaultValues([array<string|int, mixed> $configuration = [] ]) : RequestBuilderDefaultValues
Parameters
- $configuration : array<string|int, mixed> = []
Tags
Return values
RequestBuilderDefaultValuesresolveActionName()
Returns the current actionName extracted from given $parameters.
protected
resolveActionName(RequestBuilderDefaultValues $defaultValues, class-string $controllerClassName, array<string|int, mixed> $parameters) : non-empty-string
If no action is specified, the defaultActionName will be returned. If that's not available or the specified action is not defined in the current plugin, an exception is thrown.
Parameters
- $defaultValues : RequestBuilderDefaultValues
- $controllerClassName : class-string
- $parameters : array<string|int, mixed>
Tags
Return values
non-empty-stringresolveControllerClassName()
Returns the current ControllerName extracted from given $parameters.
protected
resolveControllerClassName(RequestBuilderDefaultValues $defaultValues, array<string|int, mixed> $parameters) : class-string
If no controller is specified, the defaultControllerName will be returned. If that's not available, an exception is thrown.
Parameters
- $defaultValues : RequestBuilderDefaultValues
- $parameters : array<string|int, mixed>