ServerResponseCheck implements CheckInterface
Checks how use web server is interpreting static files concerning their `content-type` and evaluated content in HTTP responses.
should only be used from within TYPO3 Core
Table of Contents
Interfaces
- CheckInterface
- Check system environment status
Constants
- WRAP_FLAT = 1
- WRAP_NESTED = 2
Properties
- $assetLocation : FileLocation
- $fileadminLocation : FileLocation
- $fileDeclarations : array<string|int, FileDeclaration>
- $messageQueue : FlashMessageQueue
- $useMarkup : bool
Methods
- __construct() : mixed
- asStatus() : Status
- getStatus() : FlashMessageQueue
- Get all status information as array with status objects
- buildFileDeclarations() : void
- createMismatchMessage() : string
- finishMessageQueue() : void
- initializeFileDeclarations() : array<string|int, mixed>
- processFileDeclarations() : void
- processHostCheck() : void
- purgeFileDeclarations() : void
- wrapItems() : array<string|int, mixed>
- wrapList() : string
- wrapValue() : string
- wrapValues() : array<string|int, mixed>
Constants
WRAP_FLAT
protected
mixed
WRAP_FLAT
= 1
WRAP_NESTED
protected
mixed
WRAP_NESTED
= 2
Properties
$assetLocation
protected
FileLocation
$assetLocation
$fileadminLocation
protected
FileLocation
$fileadminLocation
$fileDeclarations
protected
array<string|int, FileDeclaration>
$fileDeclarations
$messageQueue
protected
FlashMessageQueue
$messageQueue
$useMarkup
protected
bool
$useMarkup
Methods
__construct()
public
__construct([bool $useMarkup = true ]) : mixed
Parameters
- $useMarkup : bool = true
asStatus()
public
asStatus() : Status
Return values
StatusgetStatus()
Get all status information as array with status objects
public
getStatus() : FlashMessageQueue
Return values
FlashMessageQueuebuildFileDeclarations()
protected
buildFileDeclarations() : void
createMismatchMessage()
protected
createMismatchMessage(FileDeclaration $fileDeclaration, ResponseInterface $response) : string
Parameters
- $fileDeclaration : FileDeclaration
- $response : ResponseInterface
Return values
stringfinishMessageQueue()
protected
finishMessageQueue(FlashMessageQueue $messageQueue) : void
Parameters
- $messageQueue : FlashMessageQueue
initializeFileDeclarations()
protected
initializeFileDeclarations(string $fileName) : array<string|int, mixed>
Parameters
- $fileName : string
Return values
array<string|int, mixed>processFileDeclarations()
protected
processFileDeclarations(FlashMessageQueue $messageQueue) : void
Parameters
- $messageQueue : FlashMessageQueue
processHostCheck()
protected
processHostCheck(FlashMessageQueue $messageQueue) : void
Parameters
- $messageQueue : FlashMessageQueue
purgeFileDeclarations()
protected
purgeFileDeclarations() : void
wrapItems()
protected
wrapItems(array<string|int, mixed> $items, string $before, string $after) : array<string|int, mixed>
Parameters
- $items : array<string|int, mixed>
- $before : string
- $after : string
Return values
array<string|int, mixed>wrapList()
protected
wrapList(array<string|int, mixed> $items, string $label, int $style) : string
Parameters
- $items : array<string|int, mixed>
- $label : string
- $style : int
Return values
stringwrapValue()
protected
wrapValue(string $value, string $before, string $after) : string
Parameters
- $value : string
- $before : string
- $after : string
Return values
stringwrapValues()
protected
wrapValues(array<string|int, mixed> $values, string $before, string $after) : array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
- $before : string
- $after : string