RequestBuilder implements SingletonInterface

Builds a web request.

Internal

only to be used within Extbase, not part of TYPO3 Core API.

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$configurationManager  : ConfigurationManagerInterface
$extensionService  : ExtensionService

Methods

__construct()  : mixed
build()  : Request
Builds a web request object from the raw HTTP information and the configuration
loadDefaultValues()  : RequestBuilderDefaultValues
mapUploadedFilesToParameters()  : mixed
mapUploadedFileToParameters()  : array<string|int, mixed>
Backwards Compatibility File Mapping to Parameters
resolveActionName()  : non-empty-string
Returns the current actionName extracted from given $parameters.
resolveControllerClassName()  : class-string
Returns the current ControllerName extracted from given $parameters.

Properties

Methods

build()

Builds a web request object from the raw HTTP information and the configuration

public build(ServerRequestInterface $mainRequest) : Request
Parameters
$mainRequest : ServerRequestInterface
Return values
Request

The web request as an object

mapUploadedFilesToParameters()

protected mapUploadedFilesToParameters(array<string|int, mixed>|UploadedFile $files, array<string|int, mixed> $parameters) : mixed
Parameters
$files : array<string|int, mixed>|UploadedFile
$parameters : array<string|int, mixed>

mapUploadedFileToParameters()

Backwards Compatibility File Mapping to Parameters

protected mapUploadedFileToParameters(UploadedFile $uploadedFile) : array<string|int, mixed>
Deprecated

since v12, will be removed in v13. Use $request->getUploadedFiles() instead

Parameters
$uploadedFile : UploadedFile
Return values
array<string|int, mixed>

resolveActionName()

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
throws
InvalidActionNameException
throws
Exception
throws
PageNotFoundException
Return values
non-empty-string

resolveControllerClassName()

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>
Tags
throws
InvalidControllerNameException
throws
Exception

if the controller could not be resolved

throws
PageNotFoundException
Return values
class-string

        
On this page

Search results