EnvironmentController extends AbstractController
Environment controller
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
- 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
- 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
- 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
- initializeImageProcessor() : GraphicalFunctions
- Initialize image processor
- initializeView() : ViewInterface
- Helper method to initialize a view instance.
- isImageMagickEnabledAndConfigured() : bool
- Find out if ImageMagick or GraphicsMagick is enabled and set up
Methods
__construct()
public
__construct(LateBootService $lateBootService, FormProtectionFactory $formProtectionFactory, MailerInterface $mailer) : mixed
Parameters
- $lateBootService : LateBootService
- $formProtectionFactory : FormProtectionFactory
- $mailer : MailerInterface
cardsAction()
Main "show the cards" view
public
cardsAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceenvironmentCheckGetStatusAction()
Get environment status
public
environmentCheckGetStatusAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacefolderStructureFixAction()
Try to fix folder structure errors
public
folderStructureFixAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacefolderStructureGetStatusAction()
Get folder structure status
public
folderStructureGetStatusAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceimageProcessingCombineGifMaskAction()
Combine images with gif mask
public
imageProcessingCombineGifMaskAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingCombineJpgMaskAction()
Combine images with jpg mask
public
imageProcessingCombineJpgMaskAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingGdlibFromFileAction()
GD from image with box
public
imageProcessingGdlibFromFileAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingGdlibNiceTextAction()
GD with text, niceText
public
imageProcessingGdlibNiceTextAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingGdlibNiceTextShadowAction()
GD with text, niceText, shadow
public
imageProcessingGdlibNiceTextShadowAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingGdlibRenderTextAction()
GD with text
public
imageProcessingGdlibRenderTextAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingGdlibSimpleAction()
GD with simple box
public
imageProcessingGdlibSimpleAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingGetDataAction()
System Information Get Data action
public
imageProcessingGetDataAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceimageProcessingGifToGifAction()
Scaling transparent files - gif to gif
public
imageProcessingGifToGifAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingGifToJpgAction()
Scaling transparent files - gif to jpg
public
imageProcessingGifToJpgAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingJpgToWebpAction()
Converting jpg to webp
public
imageProcessingJpgToWebpAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingPngToPngAction()
Scaling transparent files - png to png
public
imageProcessingPngToPngAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingReadAiAction()
Convert to jpg from ai
public
imageProcessingReadAiAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingReadGifAction()
Convert to jpg from gif
public
imageProcessingReadGifAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingReadJpgAction()
Convert to jpg from jpg
public
imageProcessingReadJpgAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingReadPdfAction()
Convert to jpg from pdf
public
imageProcessingReadPdfAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingReadPngAction()
Convert to jpg from png
public
imageProcessingReadPngAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingReadTifAction()
Convert to jpg from tif
public
imageProcessingReadTifAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingTrueTypeAction()
Create true type font test image
public
imageProcessingTrueTypeAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingWriteGifAction()
Writing gif test
public
imageProcessingWriteGifAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingWritePngAction()
Writing png test
public
imageProcessingWritePngAction() : ResponseInterface
Return values
ResponseInterfaceimageProcessingWriteWebpAction()
Writing webp test
public
imageProcessingWriteWebpAction() : ResponseInterface
Return values
ResponseInterfacemailTestAction()
Send a test mail
public
mailTestAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacemailTestGetDataAction()
System Information Get Data action
public
mailTestGetDataAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacephpInfoGetDataAction()
System Information Get Data action
public
phpInfoGetDataAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacesystemInformationGetDataAction()
System Information Get Data action
public
systemInformationGetDataAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceconvertImageFormatsToJpg()
Convert to jpg from given input format
protected
convertImageFormatsToJpg(string $inputFormat) : ResponseInterface
Parameters
- $inputFormat : string
Return values
ResponseInterfacedetermineImageMagickVersion()
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
stringgetImagesPath()
Return the temp image dir.
protected
getImagesPath() : string
If not exist it will be created
Return values
stringgetImageTestResponse()
Create a JsonResponse from single image tests
protected
getImageTestResponse(array<string|int, mixed> $testResult) : ResponseInterface
Parameters
- $testResult : array<string|int, mixed>
Return values
ResponseInterfacegetSenderEmailAddress()
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
stringimageGenerationFailedMessage()
Create a 'image generation failed' message
protected
imageGenerationFailedMessage() : FlashMessage
Return values
FlashMessageimageMagickDisabledMessage()
Create a 'imageMagick disabled' message
protected
imageMagickDisabledMessage() : FlashMessage
Return values
FlashMessageinitializeImageProcessor()
Initialize image processor
protected
initializeImageProcessor() : GraphicalFunctions
Return values
GraphicalFunctions —Initialized image processor
initializeView()
Helper method to initialize a view instance.
protected
initializeView(ServerRequestInterface $request) : ViewInterface
Parameters
- $request : ServerRequestInterface
Return values
ViewInterfaceisImageMagickEnabledAndConfigured()
Find out if ImageMagick or GraphicsMagick is enabled and set up
protected
isImageMagickEnabledAndConfigured() : bool
Return values
bool —TRUE if enabled and path is set