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

Public Member Functions

 __construct (LateBootService $lateBootService)
 
ResponseInterface cardsAction (ServerRequestInterface $request)
 
ResponseInterface systemInformationGetDataAction (ServerRequestInterface $request)
 
ResponseInterface phpInfoGetDataAction (ServerRequestInterface $request)
 
ResponseInterface environmentCheckGetStatusAction (ServerRequestInterface $request)
 
ResponseInterface folderStructureGetStatusAction (ServerRequestInterface $request)
 
ResponseInterface folderStructureFixAction ()
 
ResponseInterface mailTestGetDataAction (ServerRequestInterface $request)
 
ResponseInterface mailTestAction (ServerRequestInterface $request)
 
ResponseInterface imageProcessingGetDataAction (ServerRequestInterface $request)
 
ResponseInterface imageProcessingTrueTypeAction ()
 
ResponseInterface imageProcessingReadJpgAction ()
 
ResponseInterface imageProcessingReadGifAction ()
 
ResponseInterface imageProcessingReadPngAction ()
 
ResponseInterface imageProcessingReadTifAction ()
 
ResponseInterface imageProcessingReadPdfAction ()
 
ResponseInterface imageProcessingReadAiAction ()
 
ResponseInterface imageProcessingWriteGifAction ()
 
ResponseInterface imageProcessingWritePngAction ()
 
ResponseInterface imageProcessingWriteWebpAction ()
 
ResponseInterface imageProcessingGifToGifAction ()
 
ResponseInterface imageProcessingPngToPngAction ()
 
ResponseInterface imageProcessingGifToJpgAction ()
 
ResponseInterface imageProcessingJpgToWebpAction ()
 
ResponseInterface imageProcessingCombineGifMaskAction ()
 
ResponseInterface imageProcessingCombineJpgMaskAction ()
 
ResponseInterface imageProcessingGdlibSimpleAction ()
 
ResponseInterface imageProcessingGdlibFromFileAction ()
 
ResponseInterface imageProcessingGdlibRenderTextAction ()
 
ResponseInterface imageProcessingGdlibNiceTextAction ()
 
ResponseInterface imageProcessingGdlibNiceTextShadowAction ()
 

Protected Member Functions

GraphicalFunctions initializeImageProcessor ()
 
string determineImageMagickVersion ()
 
ResponseInterface convertImageFormatsToJpg (string $inputFormat)
 
array getDatabaseConnectionInformation ()
 
array getApplicationContextInformation ()
 
string getSenderEmailAddress ()
 
string getSenderEmailName ()
 
string getEmailSubject ()
 
ResponseInterface getImageTestResponse (array $testResult)
 
FlashMessage imageGenerationFailedMessage ()
 
bool isImageMagickEnabledAndConfigured ()
 
FlashMessage imageMagickDisabledMessage ()
 
string getImagesPath ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Install\Controller\AbstractController
StandaloneView initializeStandaloneView (ServerRequestInterface $request, string $templatePath)
 

Private Attributes

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

Detailed Description

Environment controller

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

Definition at line 52 of file EnvironmentController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Controller\EnvironmentController::__construct ( LateBootService  $lateBootService)

Member Function Documentation

◆ cardsAction()

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

Main "show the cards" view

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 73 of file EnvironmentController.php.

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

◆ convertImageFormatsToJpg()

◆ determineImageMagickVersion()

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

◆ environmentCheckGetStatusAction()

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

◆ folderStructureFixAction()

ResponseInterface TYPO3\CMS\Install\Controller\EnvironmentController::folderStructureFixAction ( )

Try to fix folder structure errors

Returns
‪ResponseInterface

Definition at line 217 of file EnvironmentController.php.

◆ folderStructureGetStatusAction()

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

◆ getApplicationContextInformation()

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

◆ getDatabaseConnectionInformation()

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

Get details about all configured database connections

Returns
‪array

Definition at line 1057 of file EnvironmentController.php.

References $GLOBALS.

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

◆ getEmailSubject()

string 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.

Returns
‪string

Definition at line 1140 of file EnvironmentController.php.

References $GLOBALS.

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

◆ getImagesPath()

◆ getImageTestResponse()

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

Create a JsonResponse from single image tests

Parameters
array$testResult
Returns
‪ResponseInterface

Definition at line 1154 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\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 fall back to 'no-re.nosp@m.ply@.nosp@m.examp.nosp@m.le.c.nosp@m.om'

Returns
‪string Returns an email address

Definition at line 1112 of file EnvironmentController.php.

References $GLOBALS.

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

◆ getSenderEmailName()

string 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.

Returns
‪string

Definition at line 1126 of file EnvironmentController.php.

References $GLOBALS.

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

◆ imageGenerationFailedMessage()

◆ imageMagickDisabledMessage()

◆ imageProcessingCombineGifMaskAction()

◆ imageProcessingCombineJpgMaskAction()

◆ imageProcessingGdlibFromFileAction()

◆ imageProcessingGdlibNiceTextAction()

◆ imageProcessingGdlibNiceTextShadowAction()

◆ imageProcessingGdlibRenderTextAction()

◆ imageProcessingGdlibSimpleAction()

ResponseInterface TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingGdlibSimpleAction ( )

◆ imageProcessingGetDataAction()

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

System Information Get Data action

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 321 of file EnvironmentController.php.

References $GLOBALS, TYPO3\CMS\Install\Controller\EnvironmentController\determineImageMagickVersion(), and TYPO3\CMS\Install\Controller\AbstractController\initializeStandaloneView().

◆ imageProcessingGifToGifAction()

◆ imageProcessingGifToJpgAction()

◆ imageProcessingJpgToWebpAction()

◆ imageProcessingPngToPngAction()

◆ imageProcessingReadAiAction()

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

Convert to jpg from ai

Returns
‪ResponseInterface

Definition at line 437 of file EnvironmentController.php.

References TYPO3\CMS\Install\Controller\EnvironmentController\convertImageFormatsToJpg().

◆ imageProcessingReadGifAction()

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

Convert to jpg from gif

Returns
‪ResponseInterface

Definition at line 397 of file EnvironmentController.php.

References TYPO3\CMS\Install\Controller\EnvironmentController\convertImageFormatsToJpg().

◆ imageProcessingReadJpgAction()

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

Convert to jpg from jpg

Returns
‪ResponseInterface

Definition at line 387 of file EnvironmentController.php.

References TYPO3\CMS\Install\Controller\EnvironmentController\convertImageFormatsToJpg().

◆ imageProcessingReadPdfAction()

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

Convert to jpg from pdf

Returns
‪ResponseInterface

Definition at line 427 of file EnvironmentController.php.

References TYPO3\CMS\Install\Controller\EnvironmentController\convertImageFormatsToJpg().

◆ imageProcessingReadPngAction()

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

Convert to jpg from png

Returns
‪ResponseInterface

Definition at line 407 of file EnvironmentController.php.

References TYPO3\CMS\Install\Controller\EnvironmentController\convertImageFormatsToJpg().

◆ imageProcessingReadTifAction()

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

Convert to jpg from tif

Returns
‪ResponseInterface

Definition at line 417 of file EnvironmentController.php.

References TYPO3\CMS\Install\Controller\EnvironmentController\convertImageFormatsToJpg().

◆ imageProcessingTrueTypeAction()

ResponseInterface TYPO3\CMS\Install\Controller\EnvironmentController::imageProcessingTrueTypeAction ( )

◆ imageProcessingWriteGifAction()

◆ imageProcessingWritePngAction()

◆ imageProcessingWriteWebpAction()

◆ initializeImageProcessor()

GraphicalFunctions TYPO3\CMS\Install\Controller\EnvironmentController::initializeImageProcessor ( )
protected

◆ isImageMagickEnabledAndConfigured()

◆ mailTestAction()

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

◆ mailTestGetDataAction()

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

System Information Get Data action

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 234 of file EnvironmentController.php.

References TYPO3\CMS\Core\FormProtection\FormProtectionFactory\get(), and TYPO3\CMS\Install\Controller\AbstractController\initializeStandaloneView().

◆ phpInfoGetDataAction()

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

System Information Get Data action

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 110 of file EnvironmentController.php.

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

◆ systemInformationGetDataAction()

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

Member Data Documentation

◆ $lateBootService

LateBootService TYPO3\CMS\Install\Controller\EnvironmentController::$lateBootService
private

◆ IMAGE_FILE_EXT

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

Definition at line 54 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 55 of file EnvironmentController.php.