‪TYPO3CMS  ‪main
TYPO3\CMS\Install\Controller\EnvironmentController Class Reference
Inheritance diagram for TYPO3\CMS\Install\Controller\EnvironmentController:
TYPO3\CMS\Install\Controller\AbstractController

Public Member Functions

 __construct (private readonly LateBootService $lateBootService, private readonly FormProtectionFactory $formProtectionFactory, private readonly MailerInterface $mailer,)
 
 cardsAction (ServerRequestInterface $request)
 
 systemInformationGetDataAction (ServerRequestInterface $request)
 
 phpInfoGetDataAction (ServerRequestInterface $request)
 
 environmentCheckGetStatusAction (ServerRequestInterface $request)
 
 folderStructureGetStatusAction (ServerRequestInterface $request)
 
 folderStructureFixAction (ServerRequestInterface $request)
 
 mailTestGetDataAction (ServerRequestInterface $request)
 
 mailTestAction (ServerRequestInterface $request)
 
 imageProcessingGetDataAction (ServerRequestInterface $request)
 
 imageProcessingTrueTypeAction ()
 
 imageProcessingReadJpgAction ()
 
 imageProcessingReadWebpAction ()
 
 imageProcessingReadGifAction ()
 
 imageProcessingReadPngAction ()
 
 imageProcessingReadTifAction ()
 
 imageProcessingReadPdfAction ()
 
 imageProcessingReadAiAction ()
 
 imageProcessingWriteGifAction ()
 
 imageProcessingWritePngAction ()
 
 imageProcessingWriteWebpAction ()
 
 imageProcessingGifToGifAction ()
 
 imageProcessingPngToPngAction ()
 
 imageProcessingGifToJpgAction ()
 
 imageProcessingJpgToWebpAction ()
 
 imageProcessingCombineGifMaskAction ()
 
 imageProcessingCombineJpgMaskAction ()
 
 imageProcessingGdlibSimpleAction ()
 
 imageProcessingGdlibFromFileAction ()
 
 imageProcessingGdlibFromFileToWebpAction ()
 
 imageProcessingGdlibRenderTextAction ()
 
 imageProcessingGdlibNiceTextAction ()
 
 imageProcessingGdlibNiceTextShadowAction ()
 

Protected Member Functions

 initializeGifBuilder ()
 
 initializeGraphicalFunctions ()
 
string determineImageMagickVersion ()
 
 convertImageFormatsToJpg (string $inputFormat)
 
 getDatabaseConnectionInformation ()
 
 getApplicationContextInformation ()
 
string getSenderEmailAddress ()
 
 getSenderEmailName ()
 
 getEmailSubject ()
 
 getImageTestResponse (array $testResult)
 
 imageGenerationFailedMessage ()
 
bool isImageMagickEnabledAndConfigured ()
 
 imageMagickDisabledMessage ()
 
 getImagesPath ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Install\Controller\AbstractController
 initializeView (ServerRequestInterface $request)
 

Private Attributes

const IMAGE_FILE_EXT = ['gif', 'jpg', 'png', 'tif', 'ai', 'pdf', 'webp']
 
const TEST_REFERENCE_PATH = __DIR__ . '/../../Resources/Public/Images/TestReference'
 

Detailed Description

Environment controller

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

Definition at line 54 of file EnvironmentController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Controller\EnvironmentController::__construct ( private readonly LateBootService  $lateBootService,
private readonly FormProtectionFactory  $formProtectionFactory,
private readonly MailerInterface  $mailer 
)

Definition at line 59 of file EnvironmentController.php.

Member Function Documentation

◆ cardsAction()

TYPO3\CMS\Install\Controller\EnvironmentController::cardsAction ( ServerRequestInterface  $request)

Main "show the cards" view

Definition at line 68 of file EnvironmentController.php.

References TYPO3\CMS\Install\Controller\AbstractController\initializeView().

◆ convertImageFormatsToJpg()

◆ determineImageMagickVersion()

string TYPO3\CMS\Install\Controller\EnvironmentController::determineImageMagickVersion ( )
protected

◆ environmentCheckGetStatusAction()

TYPO3\CMS\Install\Controller\EnvironmentController::environmentCheckGetStatusAction ( ServerRequestInterface  $request)

Get environment status

Definition at line 111 of file EnvironmentController.php.

References TYPO3\CMS\Install\Controller\AbstractController\initializeView().

◆ folderStructureFixAction()

TYPO3\CMS\Install\Controller\EnvironmentController::folderStructureFixAction ( ServerRequestInterface  $request)

Try to fix folder structure errors

Definition at line 198 of file EnvironmentController.php.

References TYPO3\CMS\Core\Http\fromRequest.

◆ folderStructureGetStatusAction()

TYPO3\CMS\Install\Controller\EnvironmentController::folderStructureGetStatusAction ( ServerRequestInterface  $request)

◆ getApplicationContextInformation()

TYPO3\CMS\Install\Controller\EnvironmentController::getApplicationContextInformation ( )
protected

◆ getDatabaseConnectionInformation()

TYPO3\CMS\Install\Controller\EnvironmentController::getDatabaseConnectionInformation ( )
protected

Get details about all configured database connections

Definition at line 1028 of file EnvironmentController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\EnvironmentController\systemInformationGetDataAction().

◆ getEmailSubject()

TYPO3\CMS\Install\Controller\EnvironmentController::getEmailSubject ( )
protected

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

Definition at line 1108 of file EnvironmentController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\EnvironmentController\mailTestAction().

◆ getImagesPath()

◆ getImageTestResponse()

TYPO3\CMS\Install\Controller\EnvironmentController::getImageTestResponse ( array  $testResult)
protected

Create a JsonResponse from single image tests

Definition at line 1119 of file EnvironmentController.php.

Referenced by TYPO3\CMS\Install\Controller\EnvironmentController\convertImageFormatsToJpg(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingCombineGifMaskAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingCombineJpgMaskAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingGdlibFromFileAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingGdlibFromFileToWebpAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingGdlibNiceTextAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingGdlibNiceTextShadowAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingGdlibRenderTextAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingGdlibSimpleAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingGifToGifAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingGifToJpgAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingJpgToWebpAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingPngToPngAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingTrueTypeAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingWriteGifAction(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingWritePngAction(), and TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingWriteWebpAction().

◆ getSenderEmailAddress()

string TYPO3\CMS\Install\Controller\EnvironmentController::getSenderEmailAddress ( )
protected

Get sender address from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'] If this setting is empty, return an empty 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-re.nosp@m.ply@.nosp@m.examp.nosp@m.le.c.nosp@m.om' is no longer being used here. The sender address should be configured explicitly via ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'].

Returns
‪string Returns an email address

Definition at line 1086 of file EnvironmentController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\EnvironmentController\mailTestAction(), and TYPO3\CMS\Install\Controller\EnvironmentController\mailTestGetDataAction().

◆ getSenderEmailName()

TYPO3\CMS\Install\Controller\EnvironmentController::getSenderEmailName ( )
protected

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

Definition at line 1096 of file EnvironmentController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\EnvironmentController\mailTestAction().

◆ imageGenerationFailedMessage()

◆ imageMagickDisabledMessage()

◆ imageProcessingCombineGifMaskAction()

◆ imageProcessingCombineJpgMaskAction()

◆ imageProcessingGdlibFromFileAction()

◆ imageProcessingGdlibFromFileToWebpAction()

◆ imageProcessingGdlibNiceTextAction()

◆ imageProcessingGdlibNiceTextShadowAction()

◆ imageProcessingGdlibRenderTextAction()

◆ imageProcessingGdlibSimpleAction()

◆ imageProcessingGetDataAction()

TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingGetDataAction ( ServerRequestInterface  $request)

◆ imageProcessingGifToGifAction()

◆ imageProcessingGifToJpgAction()

◆ imageProcessingJpgToWebpAction()

◆ imageProcessingPngToPngAction()

◆ imageProcessingReadAiAction()

TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingReadAiAction ( )

◆ imageProcessingReadGifAction()

TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingReadGifAction ( )

◆ imageProcessingReadJpgAction()

TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingReadJpgAction ( )

◆ imageProcessingReadPdfAction()

TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingReadPdfAction ( )

◆ imageProcessingReadPngAction()

TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingReadPngAction ( )

◆ imageProcessingReadTifAction()

TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingReadTifAction ( )

◆ imageProcessingReadWebpAction()

TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingReadWebpAction ( )

◆ imageProcessingTrueTypeAction()

◆ imageProcessingWriteGifAction()

◆ imageProcessingWritePngAction()

◆ imageProcessingWriteWebpAction()

◆ initializeGifBuilder()

◆ initializeGraphicalFunctions()

◆ isImageMagickEnabledAndConfigured()

◆ mailTestAction()

TYPO3\CMS\Install\Controller\EnvironmentController::mailTestAction ( ServerRequestInterface  $request)

◆ mailTestGetDataAction()

TYPO3\CMS\Install\Controller\EnvironmentController::mailTestGetDataAction ( ServerRequestInterface  $request)

◆ phpInfoGetDataAction()

TYPO3\CMS\Install\Controller\EnvironmentController::phpInfoGetDataAction ( ServerRequestInterface  $request)

System Information Get Data action

Definition at line 99 of file EnvironmentController.php.

References TYPO3\CMS\Install\Controller\AbstractController\initializeView().

◆ systemInformationGetDataAction()

Member Data Documentation

◆ IMAGE_FILE_EXT

const TYPO3\CMS\Install\Controller\EnvironmentController::IMAGE_FILE_EXT = ['gif', 'jpg', 'png', 'tif', 'ai', 'pdf', 'webp']
private

Definition at line 56 of file EnvironmentController.php.

◆ TEST_REFERENCE_PATH

const TYPO3\CMS\Install\Controller\EnvironmentController::TEST_REFERENCE_PATH = __DIR__ . '/../../Resources/Public/Images/TestReference'
private

Definition at line 57 of file EnvironmentController.php.