EnvironmentController

class \TYPO3\CMS\Install\Controller\EnvironmentController

Extends
AbstractController

Environment controller

Table of Contents

Methods

__construct()  : mixed
cardsAction()  : ResponseInterface
Main "show the cards" view
environmentCheckGetStatusAction()  : ResponseInterface
Get environment status
folderStructureFixAction()  : ResponseInterface
Try to fix folder structure errors
folderStructureGetStatusAction()  : ResponseInterface
Get folder structure status
imageProcessingCombineGifMaskAction()  : ResponseInterface
Combine images with gif mask
imageProcessingCombineJpgMaskAction()  : ResponseInterface
Combine images with jpg mask
imageProcessingGdlibFromFileAction()  : ResponseInterface
GD from image with box
imageProcessingGdlibFromFileToAvifAction()  : ResponseInterface
GD from image with box exported as AVIF file
imageProcessingGdlibFromFileToWebpAction()  : ResponseInterface
GD from image with box exported as webp file
imageProcessingGdlibNiceTextAction()  : ResponseInterface
GD with text, niceText
imageProcessingGdlibNiceTextShadowAction()  : ResponseInterface
GD with text, niceText, shadow
imageProcessingGdlibRenderTextAction()  : ResponseInterface
GD with text
imageProcessingGdlibSimpleAction()  : ResponseInterface
GD with simple box
imageProcessingGetDataAction()  : ResponseInterface
System Information Get Data action
imageProcessingGifToGifAction()  : ResponseInterface
Scaling transparent files - gif to gif
imageProcessingGifToJpgAction()  : ResponseInterface
Scaling transparent files - gif to jpg
imageProcessingJpgToAvifAction()  : ResponseInterface
Converting jpg to avif
imageProcessingJpgToWebpAction()  : ResponseInterface
Converting jpg to webp
imageProcessingPngToAvifAction()  : ResponseInterface
Converting png to avif
imageProcessingPngToPngAction()  : ResponseInterface
Scaling transparent files - png to png
imageProcessingPngToWebpAction()  : ResponseInterface
Converting png to webp
imageProcessingReadAiAction()  : ResponseInterface
Convert to jpg from ai
imageProcessingReadAvifAction()  : ResponseInterface
Convert to jpg from avif
imageProcessingReadGifAction()  : ResponseInterface
Convert to jpg from gif
imageProcessingReadJpgAction()  : ResponseInterface
Convert to jpg from jpg
imageProcessingReadPdfAction()  : ResponseInterface
Convert to jpg from pdf
imageProcessingReadPngAction()  : ResponseInterface
Convert to jpg from png
imageProcessingReadTifAction()  : ResponseInterface
Convert to jpg from tif
imageProcessingReadWebpAction()  : ResponseInterface
Convert to jpg from webp
imageProcessingSvgToPngAction()  : ResponseInterface
Scaling transparent files - svg to png (note black/white background)
imageProcessingSvgToWebpAction()  : ResponseInterface
Scaling transparent files - svg to webp (note black/white background)
imageProcessingTrueTypeAction()  : ResponseInterface
Create true type font test image
imageProcessingWriteAvifAction()  : ResponseInterface
Writing avif test
imageProcessingWriteGifAction()  : ResponseInterface
Writing gif test
imageProcessingWritePngAction()  : ResponseInterface
Writing png test
imageProcessingWriteWebpAction()  : ResponseInterface
Writing webp test
mailTestAction()  : ResponseInterface
Send a test mail
mailTestGetDataAction()  : ResponseInterface
System Information Get Data action
phpInfoGetDataAction()  : ResponseInterface
System Information Get Data action
systemInformationGetDataAction()  : ResponseInterface
System Information Get Data action
avifImageGenerationFailedMessage()  : FlashMessage
convertImageFormatsToJpg()  : ResponseInterface
Convert to jpg from given input format
determineImageMagickVersion()  : string
Determine ImageMagick / GraphicsMagick version
freeTypeMissingMessage()  : FlashMessage
gdReadFailedMessage()  : FlashMessage
getApplicationContextInformation()  : array
Get details about the application context
getDatabaseConnectionInformation()  : array
Get details about all configured database connections
getEmailSubject()  : string
Gets email subject from configuration ['TYPO3_CONF_VARS']['SYS']['sitename'] If this setting is empty, it falls back to a default string.
getImagesPath()  : string
Return the temp image dir.
getImageTestResponse()  : ResponseInterface
Create a JsonResponse from single image tests
getSenderEmailAddress()  : string
Get sender address from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'] If this setting is empty, return an empty string.
getSenderEmailName()  : string
Gets sender name from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromName'] If this setting is empty, it falls back to a default string.
imageGenerationFailedMessage()  : FlashMessage
Create a 'image generation failed' message
imageMagickDisabledMessage()  : FlashMessage
Create a 'imageMagick disabled' message
initializeGraphicalFunctions()  : GraphicalFunctions
Initialize GraphicalFunctions for image manipulation tests
initializeView()  : ViewInterface
Helper method to initialize a view instance.
isImageMagickEnabledAndConfigured()  : bool
Find out if ImageMagick or GraphicsMagick is enabled and set up

Methods

cardsAction()

Main "show the cards" view

public cardsAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

environmentCheckGetStatusAction()

Get environment status

public environmentCheckGetStatusAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

folderStructureFixAction()

Try to fix folder structure errors

public folderStructureFixAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

folderStructureGetStatusAction()

Get folder structure status

public folderStructureGetStatusAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

imageProcessingCombineGifMaskAction()

Combine images with gif mask

public imageProcessingCombineGifMaskAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingCombineJpgMaskAction()

Combine images with jpg mask

public imageProcessingCombineJpgMaskAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingGdlibFromFileAction()

GD from image with box

public imageProcessingGdlibFromFileAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingGdlibFromFileToAvifAction()

GD from image with box exported as AVIF file

public imageProcessingGdlibFromFileToAvifAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingGdlibFromFileToWebpAction()

GD from image with box exported as webp file

public imageProcessingGdlibFromFileToWebpAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingGdlibNiceTextAction()

GD with text, niceText

public imageProcessingGdlibNiceTextAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingGdlibNiceTextShadowAction()

GD with text, niceText, shadow

public imageProcessingGdlibNiceTextShadowAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingGdlibRenderTextAction()

GD with text

public imageProcessingGdlibRenderTextAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingGdlibSimpleAction()

GD with simple box

public imageProcessingGdlibSimpleAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingGetDataAction()

System Information Get Data action

public imageProcessingGetDataAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

imageProcessingGifToGifAction()

Scaling transparent files - gif to gif

public imageProcessingGifToGifAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingGifToJpgAction()

Scaling transparent files - gif to jpg

public imageProcessingGifToJpgAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingJpgToAvifAction()

Converting jpg to avif

public imageProcessingJpgToAvifAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingJpgToWebpAction()

Converting jpg to webp

public imageProcessingJpgToWebpAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingPngToAvifAction()

Converting png to avif

public imageProcessingPngToAvifAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingPngToPngAction()

Scaling transparent files - png to png

public imageProcessingPngToPngAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingPngToWebpAction()

Converting png to webp

public imageProcessingPngToWebpAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingReadAiAction()

Convert to jpg from ai

public imageProcessingReadAiAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingReadAvifAction()

Convert to jpg from avif

public imageProcessingReadAvifAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingReadGifAction()

Convert to jpg from gif

public imageProcessingReadGifAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingReadJpgAction()

Convert to jpg from jpg

public imageProcessingReadJpgAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingReadPdfAction()

Convert to jpg from pdf

public imageProcessingReadPdfAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingReadPngAction()

Convert to jpg from png

public imageProcessingReadPngAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingReadTifAction()

Convert to jpg from tif

public imageProcessingReadTifAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingReadWebpAction()

Convert to jpg from webp

public imageProcessingReadWebpAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingSvgToPngAction()

Scaling transparent files - svg to png (note black/white background)

public imageProcessingSvgToPngAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingSvgToWebpAction()

Scaling transparent files - svg to webp (note black/white background)

public imageProcessingSvgToWebpAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingTrueTypeAction()

Create true type font test image

public imageProcessingTrueTypeAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingWriteAvifAction()

Writing avif test

public imageProcessingWriteAvifAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingWriteGifAction()

Writing gif test

public imageProcessingWriteGifAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingWritePngAction()

Writing png test

public imageProcessingWritePngAction() : ResponseInterface

Return values

ResponseInterface

imageProcessingWriteWebpAction()

Writing webp test

public imageProcessingWriteWebpAction() : ResponseInterface

Return values

ResponseInterface

mailTestAction()

Send a test mail

public mailTestAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

mailTestGetDataAction()

System Information Get Data action

public mailTestGetDataAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

phpInfoGetDataAction()

System Information Get Data action

public phpInfoGetDataAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

systemInformationGetDataAction()

System Information Get Data action

public systemInformationGetDataAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

convertImageFormatsToJpg()

Convert to jpg from given input format

protected convertImageFormatsToJpg(string $inputFormat) : ResponseInterface

Parameters

$inputFormat : string

Return values

ResponseInterface

determineImageMagickVersion()

Determine ImageMagick / GraphicsMagick version

protected determineImageMagickVersion() : string

Return values

string —

Version

getApplicationContextInformation()

Get details about the application context

protected getApplicationContextInformation() : array

Return values

array

getDatabaseConnectionInformation()

Get details about all configured database connections

protected getDatabaseConnectionInformation() : array

Return values

array

getEmailSubject()

Gets email subject from configuration ['TYPO3_CONF_VARS']['SYS']['sitename'] If this setting is empty, it falls back to a default string.

protected getEmailSubject() : string

Return values

string

getImagesPath()

Return the temp image dir.

protected getImagesPath() : string

If not exist it will be created

Return values

string

getImageTestResponse()

Create a JsonResponse from single image tests

protected getImageTestResponse(array $testResult) : ResponseInterface

Parameters

$testResult : array

Return values

ResponseInterface

getSenderEmailAddress()

Get sender address from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'] If this setting is empty, return an empty string.

protected getSenderEmailAddress() : string

Email servers often reject mails with an invalid sender email address (or an address which does not correspondent to the email account). In any case, it is not good practice to send emails with arbitrary sender addresses. This is why a default like 'no-reply@example.com' is no longer being used here. The sender address should be configured explicitly via ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'].

Return values

string —

Returns an email address

getSenderEmailName()

Gets sender name from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromName'] If this setting is empty, it falls back to a default string.

protected getSenderEmailName() : string

Return values

string

initializeView()

Helper method to initialize a view instance.

protected initializeView(ServerRequestInterface $request) : ViewInterface

Parameters

$request : ServerRequestInterface

Return values

ViewInterface

isImageMagickEnabledAndConfigured()

Find out if ImageMagick or GraphicsMagick is enabled and set up

protected isImageMagickEnabledAndConfigured() : bool

Return values

bool —

TRUE if enabled and path is set

On this page