EnvironmentController extends AbstractController

Environment controller

Internal

This class is a specific controller implementation and is not considered part of the Public TYPO3 API.

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
imageProcessingJpgToWebpAction()  : ResponseInterface
Converting jpg to webp
imageProcessingPngToPngAction()  : ResponseInterface
Scaling transparent files - png to png
imageProcessingReadAiAction()  : ResponseInterface
Convert to jpg from ai
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
imageProcessingTrueTypeAction()  : ResponseInterface
Create true type font test image
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
getApplicationContextInformation()  : array<string|int, mixed>
Get details about the application context
getDatabaseConnectionInformation()  : array<string|int, mixed>
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
initializeGifBuilder()  : GifBuilder
Initialize GifBuilder for image manipulation tests
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

imageProcessingJpgToWebpAction()

Converting jpg to webp

public imageProcessingJpgToWebpAction() : ResponseInterface
Return values
ResponseInterface

imageProcessingPngToPngAction()

Scaling transparent files - png to png

public imageProcessingPngToPngAction() : ResponseInterface
Return values
ResponseInterface

imageProcessingReadAiAction()

Convert to jpg from ai

public imageProcessingReadAiAction() : 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

imageProcessingTrueTypeAction()

Create true type font test image

public imageProcessingTrueTypeAction() : 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<string|int, mixed>
Return values
array<string|int, mixed>

getDatabaseConnectionInformation()

Get details about all configured database connections

protected getDatabaseConnectionInformation() : array<string|int, mixed>
Return values
array<string|int, mixed>

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<string|int, mixed> $testResult) : ResponseInterface
Parameters
$testResult : array<string|int, mixed>
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

initializeGifBuilder()

Initialize GifBuilder for image manipulation tests

protected initializeGifBuilder() : GifBuilder
Return values
GifBuilder

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

Search results