‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Core\SystemEnvironmentBuilder Class Reference

Static Public Member Functions

static run (int $entryPointLevel=0, int $requestType=0)
 

Public Attributes

const REQUESTTYPE_FE = 1
 
const REQUESTTYPE_BE = 2
 
const REQUESTTYPE_CLI = 4
 
const REQUESTTYPE_AJAX = 8
 
const REQUESTTYPE_INSTALL = 16
 

Static Protected Member Functions

static createApplicationContext ()
 
static defineBaseConstants ()
 
static string calculateScriptPath (int $entryPointLevel, int $requestType)
 
static string calculateRootPath (int $entryPointLevel, int $requestType)
 
static initializeGlobalVariables ()
 
static initializeGlobalTimeTrackingVariables ()
 
static getDefinedPathRoot ()
 
static initializeEnvironment (int $requestType, string $scriptPath, string $sitePath)
 
static isRunningOnWindows ()
 
static string getPathThisScript (bool $isCli)
 
static string getPathThisScriptNonCli ()
 
static string getPathThisScriptCli ()
 
static string getRootPathFromScriptPath ($scriptPath, $entryPointLevel)
 
static usesComposerClassLoading ()
 
static isCliRequestType (?int $requestType)
 

Detailed Description

Class to encapsulate base setup of bootstrap.

This class contains all code that must be executed by every entry script.

It sets up all basic paths, constants, global variables and checks the basic environment TYPO3 runs in.

This class does not use any TYPO3 instance specific configuration, it only sets up things based on the server environment and core code. Even with a missing system/settings.php this script will be successful.

The script aborts execution with an error message if some part fails or conditions are not met.

This script is internal code and subject to change.

Definition at line 40 of file SystemEnvironmentBuilder.php.

Member Function Documentation

◆ calculateRootPath()

static string TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::calculateRootPath ( int  $entryPointLevel,
int  $requestType 
)
staticprotected

Absolute path to the "classic" site root of the TYPO3 application. This semantically refers to the directory where executable server-side code, configuration and runtime files are located (e.g. typo3conf/ext, typo3/sysext, typo3temp/var). In practice this is always identical to the public web document root path which contains files that are served by the webserver directly (fileadmin/ and public resources).

This is not to be confused with the app-path that is used in composer-mode installations (by default). Resources in app-path are located outside the document root.

Parameters
int$entryPointLevel‪Number of subdirectories where the entry script is located under the document root
int$requestType
Returns
‪string Absolute path without trailing slash

Definition at line 150 of file SystemEnvironmentBuilder.php.

References TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\getDefinedPathRoot(), TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\getRootPathFromScriptPath(), and TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\isCliRequestType().

Referenced by TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\run().

◆ calculateScriptPath()

static string TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::calculateScriptPath ( int  $entryPointLevel,
int  $requestType 
)
staticprotected

Calculate script path. This is the absolute path to the entry script. Can be something like '.../public/index.php' for web calls, or '.../bin/typo3' or similar for cli calls.

Parameters
int$entryPointLevel‪Number of subdirectories where the entry script is located under the document root
Returns
‪string Absolute path to entry script

Definition at line 109 of file SystemEnvironmentBuilder.php.

References TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\getDefinedPathRoot(), TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\getRootPathFromScriptPath(), and TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\isCliRequestType().

Referenced by TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\run().

◆ createApplicationContext()

static TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::createApplicationContext ( )
staticprotected

Some notes:

HTTP_TYPO3_CONTEXT -> used with Apache suexec support REDIRECT_TYPO3_CONTEXT -> used under some circumstances when value is set in the webserver and proxying the values to FPM

Exceptions

Definition at line 78 of file SystemEnvironmentBuilder.php.

◆ defineBaseConstants()

static TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::defineBaseConstants ( )
staticprotected

Define all simple constants that have no dependency to local configuration

Definition at line 87 of file SystemEnvironmentBuilder.php.

Referenced by TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\run().

◆ getDefinedPathRoot()

◆ getPathThisScript()

static string TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::getPathThisScript ( bool  $isCli)
staticprotected

Calculate script path.

First step in path calculation: Goal is to find the absolute path of the entry script that was called without resolving any links. This is important since the TYPO3 entry points are often linked to a central core location, so we can not use the php magic FILE here, but resolve the called script path from given server environments.

This path is important to calculate the document root. The strategy is to find out the script name that was called in the first place and to subtract the local part from it to find the document root.

Parameters
bool$isCli
Returns
‪string Absolute path to entry script

Definition at line 252 of file SystemEnvironmentBuilder.php.

References TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\getPathThisScriptCli(), and TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\getPathThisScriptNonCli().

◆ getPathThisScriptCli()

static string TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::getPathThisScriptCli ( )
staticprotected

Calculate path to entry script if in cli mode.

First argument of a cli script is the path to the script that was called. If the script does not start with / (or A:\ for Windows), the path is not absolute yet, and the current working directory is added.

Returns
‪string Absolute path to entry script

Definition at line 282 of file SystemEnvironmentBuilder.php.

References $_SERVER.

Referenced by TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\getPathThisScript().

◆ getPathThisScriptNonCli()

static string TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::getPathThisScriptNonCli ( )
staticprotected

Return path to entry script if not in cli mode.

Returns
‪string Absolute path to entry script

Definition at line 265 of file SystemEnvironmentBuilder.php.

References $_SERVER, TYPO3\CMS\Core\Core\Environment\isRunningOnCgiServer(), and TYPO3\CMS\Core\Core\Environment\usesCgiFixPathInfo().

Referenced by TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\getPathThisScript().

◆ getRootPathFromScriptPath()

static string TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::getRootPathFromScriptPath (   $scriptPath,
  $entryPointLevel 
)
staticprotected

Calculate the document root part to the instance from $scriptPath. This is based on the amount of subdirectories "under" root path where $scriptPath is located.

The following main scenarios for entry points exist by default in the TYPO3 core:

  • ‪Directly called documentRoot/index.php (-> FE call or eiD include): index.php is located in the same directory as the main project. The document root is identical to the directory the script is located at.
  • ‪The install tool, located under typo3/install.php.
  • ‪The CLI script 'typo3/sysext/core/bin/typo3' which is located inside typo3/ directly.
Parameters
string$scriptPath‪Calculated path to the entry script
int$entryPointLevel‪Number of subdirectories where the entry script is located under the document root
Returns
‪string Absolute path to document root of installation without trailing slash

Definition at line 317 of file SystemEnvironmentBuilder.php.

References TYPO3\CMS\Core\Utility\PathUtility\dirnameDuringBootstrap(), and TYPO3\CMS\Core\Utility\GeneralUtility\revExplode().

Referenced by TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\calculateRootPath(), and TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\calculateScriptPath().

◆ initializeEnvironment()

static TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::initializeEnvironment ( int  $requestType,
string  $scriptPath,
string  $sitePath 
)
staticprotected

◆ initializeGlobalTimeTrackingVariables()

static TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::initializeGlobalTimeTrackingVariables ( )
staticprotected

Initialize global time tracking variables. These are helpers to for example output script parsetime at the end of a script.

Definition at line 176 of file SystemEnvironmentBuilder.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\run().

◆ initializeGlobalVariables()

static TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::initializeGlobalVariables ( )
staticprotected

Set up / initialize several globals variables

Definition at line 166 of file SystemEnvironmentBuilder.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\run().

◆ isCliRequestType()

static TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::isCliRequestType ( ?int  $requestType)
staticprotected

Checks if request type is cli. Falls back to check PHP_SAPI in case request type is not provided

Definition at line 337 of file SystemEnvironmentBuilder.php.

References TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\REQUESTTYPE_CLI.

Referenced by TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\calculateRootPath(), and TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\calculateScriptPath().

◆ isRunningOnWindows()

static TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::isRunningOnWindows ( )
staticprotected

Determine if the operating system TYPO3 is running on is windows.

Definition at line 230 of file SystemEnvironmentBuilder.php.

◆ run()

static TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run ( int  $entryPointLevel = 0,
int  $requestType = 0 
)
static

Run base setup. This entry method is used in all scopes (FE, BE, Install Tool and CLI)

This method should not be used by 3rd party code. It will change without further notice.

Parameters
int$entryPointLevel‪Number of subdirectories where the entry script is located under the document root

Definition at line 60 of file SystemEnvironmentBuilder.php.

References TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\calculateRootPath(), TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\calculateScriptPath(), TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\defineBaseConstants(), TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\initializeEnvironment(), TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\initializeGlobalTimeTrackingVariables(), and TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\initializeGlobalVariables().

◆ usesComposerClassLoading()

static TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::usesComposerClassLoading ( )
staticprotected

Definition at line 328 of file SystemEnvironmentBuilder.php.

Member Data Documentation

◆ REQUESTTYPE_AJAX

const TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_AJAX = 8

Definition at line 49 of file SystemEnvironmentBuilder.php.

◆ REQUESTTYPE_BE

const TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_BE = 2

Definition at line 45 of file SystemEnvironmentBuilder.php.

Referenced by TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManager\__construct(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\addGetLanguageStatementWorksForForeignLanguageWithSubselectionWithoutDeleteStatementReturned(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\addGetLanguageStatementWorksInBackendContextWithSubselectionTakesDeleteStatementIntoAccountIfNecessary(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Validation\ActionControllerValidationTest\argumentsOfOriginalRequestRemainOnValidationErrors(), TYPO3\CMS\Backend\Tests\Functional\Controller\BackendControllerTest\backendPageRenderEventIsTriggered(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\buildBackendUriCreatesAbsoluteUrisIfSpecified(), TYPO3\CMS\Backend\Routing\UriBuilder\buildUri(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Backend\Tests\Functional\Form\FormTestService\createNewRecordForm(), TYPO3\CMS\Backend\Tests\Functional\Form\Container\FilesControlContainerTest\customFileControlsEventIsCalled(), TYPO3\CMS\Extensionmanager\Command\DeactivateExtensionCommand\execute(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\expressionIsGeneratedForDoNotIgnoreEnableFieldsAndDoNotIncludeDeletedInBackendContext(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\expressionIsGeneratedForDoNotIgnoreEnableFieldsAndIncludeDeletedInBackendContext(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\expressionIsGeneratedForIgnoreEnableFieldsAndDoNotIncludeDeletedInBackendContext(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\expressionIsOmittedForIgnoreEnableFieldsAreAndDoNotIncludeDeletedInBackendContext(), TYPO3\CMS\Backend\Tests\Functional\Controller\BackendControllerTest\flashMessageIsDispatchedForForcedRedirect(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Validation\ActionControllerValidationTest\forwardedActionValidatesPreviouslyIgnoredArgument(), TYPO3\CMS\Backend\Http\Application\handle(), TYPO3\CMS\Core\Tests\Unit\Http\ApplicationTypeTest\isBackendReturnsTrueIfBackend(), TYPO3\CMS\Core\Tests\Unit\Http\ApplicationTypeTest\isFrontendReturnsFalseIfNotFrontend(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Be\Menus\ActionMenuItemViewHelperTest\isRendered(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\languageStatementWorksInBackendContext(), TYPO3\CMS\RteCKEditor\Tests\Functional\RecordList\Controller\BrowseLinksControllerTest\linkEventsAreTriggered(), TYPO3\CMS\Redirects\Tests\Functional\Controller\ManagementControllerTest\modifyRedirectManagementControllerViewDataEventIsTriggered(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Web\RequestBuilderTest\multipleUploadedFileCanBeRetrievedFromRequest(), TYPO3\CMS\Core\Tests\Functional\Page\PageRendererTest\pageRendererRendersDataAttributeInCssTags(), TYPO3\CMS\Core\Tests\Functional\Page\PageRendererTest\pageRendererRendersDataAttributeInScriptTags(), TYPO3\CMS\Core\Tests\Functional\Page\PageRendererTest\pageRendererRendersFooterValuesDataProvider(), TYPO3\CMS\Core\Tests\Functional\Page\PageRendererTest\pageRendererRendersInsertsMainContentStringsInOutput(), TYPO3\CMS\Core\Tests\Functional\Page\PageRendererTest\pageRendererRendersNomoduleJavascript(), TYPO3\CMS\Backend\Tests\Functional\Authentication\PasswordResetTest\passwordResetEmailIsTriggeredForValidUser(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Web\RequestBuilderTest\prepareServerRequest(), TYPO3\CMS\Backend\Tests\Functional\Controller\EditDocumentControllerTest\processedDataDoesNotOverridePostWithDefaultValues(), TYPO3\CMS\Backend\Tests\Functional\Controller\EditDocumentControllerTest\processedDataTakesOverDefaultValues(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\PageRendererViewHelperTest\render(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderAppendsSquareBracketsToNameAttributeIfBoundToAPropertyOfTypeArray(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\RadioViewHelperTest\renderCallExtendsClassAttributeWithErrorClass(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderCallExtendsClassAttributeWithErrorClass(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\RadioViewHelperTest\renderCallSetsErrorClassAttribute(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderCallSetsErrorClassAttribute(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\RadioViewHelperTest\renderCallSetsStandardErrorClassAttributeIfNonIsSpecified(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderCallSetsStandardErrorClassAttributeIfNonIsSpecified(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\UploadViewHelperTest\renderCallsSetErrorClassAttribute(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\TextfieldViewHelperTest\renderCallsSetErrorClassAttribute(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\TextareaViewHelperTest\renderCallsSetErrorClassAttribute(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\SelectViewHelperTest\renderCallsSetErrorClassAttribute(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\RadioViewHelperTest\renderCorrectlySetsCheckedAttributeIfCheckboxIsBoundToAPropertyOfTypeBoolean(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\RadioViewHelperTest\renderDoesNotAppendSquareBracketsToNameAttributeIfBoundToAPropertyOfTypeArray(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\RadioViewHelperTest\renderDoesNotSetsCheckedAttributeIfBoundPropertyIsNull(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderDoesNotSetsCheckedAttributeIfBoundPropertyIsNull(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\RadioViewHelperTest\renderIgnoresBoundPropertyIfCheckedIsSet(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderIgnoresValueOfBoundPropertyIfCheckedIsSet(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInBackendCoreContextAddsSection(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInBackendCoreContextAddsSection(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInBackendCoreContextCreatesAbsoluteLink(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInBackendCoreContextCreatesAbsoluteUri(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInBackendCoreContextCreatesLinkWithRouteFromAdditionalParams(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInBackendCoreContextCreatesLinkWithRouteFromQueryString(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInBackendCoreContextCreatesLinkWithRouteFromRequest(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInBackendCoreContextCreatesNoLinkWithoutRoute(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInBackendCoreContextCreatesNoUriWithoutRoute(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInBackendCoreContextCreatesUriWithRouteFromAdditionalParams(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInBackendCoreContextCreatesUriWithRouteFromQueryString(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInBackendCoreContextCreatesUriWithRouteFromRequest(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\ActionViewHelperTest\renderInBackendCoreContextThrowsExceptionWithIncompleteArguments(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\ActionViewHelperTest\renderInBackendCoreContextThrowsExceptionWithIncompleteArguments(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInBackendExtbaseContextCreatesAbsoluteLinkWithId(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInBackendExtbaseContextCreatesAbsoluteUriWithId(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInBackendExtbaseContextCreatesLinkWithId(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInBackendExtbaseContextCreatesUriWithId(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\TranslateViewHelperTest\renderInExtbaseContextHandlesLocaleObjectAsLanguageKey(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\TranslateViewHelperTest\renderInExtbaseContextHandlesLocaleObjectAsLanguageKeyWithFallback(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\TranslateViewHelperTest\renderInExtbaseContextHandlesLocaleObjectAsLanguageKeyWithoutFallback(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\PageRendererViewHelperTest\renderResolvesLabelWithExtbaseRequest(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\FlashMessagesViewHelperTest\renderReturnsEmptyStringIfNoFlashMessagesAreInQueue(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\TranslateViewHelperTest\renderReturnsStringInExtbaseContext(), TYPO3\CMS\Backend\Tests\Functional\Template\Components\Buttons\Action\ShortcutButtonTest\rendersCorrectMarkup(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderSetsCheckedAttributeIfBoundPropertyIsNotNull(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderSetsCheckedAttributeIfCheckboxIsBoundToAPropertyOfTypeArray(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderSetsCheckedAttributeIfCheckboxIsBoundToAPropertyOfTypeArrayObject(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\CheckboxViewHelperTest\renderSetsCheckedAttributeIfCheckboxIsBoundToAPropertyOfTypeBoolean(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\RadioViewHelperTest\renderSetsCheckedAttributeIfCheckboxIsBoundToAPropertyOfTypeString(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\ImageViewHelperTest\renderThrowsExceptionWithContentObjectPresentOnInvalidArguments(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\ImageViewHelperTest\renderThrowsExceptionWithContentObjectPresentOnInvalidArguments(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Form\ValidationResultsViewHelperTest\renderValidationResults(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Web\RequestBuilderTest\resolveActionNameReturnsActionDefinedViaParametersOfServerRequest(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Web\RequestBuilderTest\resolveActionNameReturnsActionDefinedViaParsedBodyOfServerRequest(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\respectEnableFieldsSettingGeneratesCorrectStatementWithOnlyEndTimeInBackendContext(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\BooleanValidatorTest\setUp(), TYPO3\CMS\Form\Tests\Functional\Mvc\Validation\CountValidatorTest\setUp(), TYPO3\CMS\Form\Tests\Functional\Mvc\Validation\EmptyValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\EmailAddressValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\NotEmptyValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\NumberRangeValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\StringValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\AlphanumericValidatorTest\setUp(), TYPO3\CMS\Form\Tests\Functional\Mvc\Validation\DateRangeValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\DateTimeValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\IntegerValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\StringLengthValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\FunctionalDeprecated\Validation\Validator\RegularExpressionValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\UrlValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\FloatValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\RegularExpressionValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\NumberValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\TextValidatorTest\setUp(), TYPO3\CMS\Form\Tests\Functional\Mvc\Validation\FileSizeValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\OperatorTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\ViewHelpers\Link\NewRecordViewHelperTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\ViewHelpers\Link\EditRecordViewHelperTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\ViewHelpers\Uri\EditRecordViewHelperTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\ViewHelpers\Uri\NewRecordViewHelperTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\LazyLoadingProxyTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\Controller\MfaAjaxControllerTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\IsDirtyTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\LazyObjectStorageTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Property\TypeConverter\PersistentObjectConverterTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\QueryParserTest\setUp(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Transform\HtmlViewHelperTest\setUp(), TYPO3\CMS\Form\Tests\Functional\Domain\Model\Renderable\AbstractRenderableTest\setUp(), TYPO3\CMS\Form\Tests\Functional\Mvc\Validation\MimeTypeValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\InTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\CountTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator\CollectionValidatorTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ControllerArgumentsMappingTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\AddTest\setUp(), TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\UpdateTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\QueryLocalizedDataTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Web\RequestBuilderTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\RelationTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Mapper\DataMapperTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\Controller\MfaConfigurationControllerTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\Controller\ResetPasswordControllerTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\Controller\MfaControllerTest\setUp(), TYPO3\CMS\Backend\Tests\Functional\Controller\MfaSetupControllerTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\setupFullTestEnvironment(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\tcaWithoutCtrlCreatesAValidSQLStatement(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Format\HtmlViewHelperTest\throwsExceptionIfCalledInBackendContext(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Web\RequestBuilderTest\uploadedFileCanBeRetrievedFromRequest(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\uriForOnlySetsActionArgumentIfSpecified(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\uriForPrefixesArgumentsWithExtensionAndPluginNameAndSetsControllerArgument(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\uriForRecursivelyMergesAndOverrulesControllerArgumentsWithArguments(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\uriForSetsControllerFromRequestIfControllerIsNotSet(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\uriForSetsExtensionNameFromRequestIfExtensionNameIsNotSet(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\uriForSetsPluginNameFromRequestIfPluginNameIsNotSet(), and TYPO3\CMS\Extbase\Tests\Functional\Mvc\Validation\ActionControllerValidationTest\validationResultsAreProvidedForTheSameObjectInDifferentArguments().

◆ REQUESTTYPE_CLI

const TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_CLI = 4

◆ REQUESTTYPE_FE

const TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE = 1

Definition at line 43 of file SystemEnvironmentBuilder.php.

Referenced by TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\addGetLanguageStatementWorksForForeignLanguageWithSubselectionTakesDeleteStatementIntoAccountIfNecessary(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\addPageIdStatementSetsPidToZeroIfTableDeclaresRootLevel(), TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\ClassConstantMatcherFixture\aMethod(), TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest\beforeRedirectMatchDomainEventIsTriggered(), TYPO3\CMS\Form\Tests\Functional\ViewHelpers\RenderFormValueViewHelperTest\buildExtbaseRequest(), TYPO3\CMS\Form\Tests\Functional\Domain\Runtime\FormRuntimeTest\buildExtbaseRequest(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest\buildRequest(), TYPO3\CMS\Extbase\Tests\Functional\Utility\LocalizationUtilityTest\clearLabelWithTypoScript(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\convertQueryToDoctrineQueryBuilderAddsAndConstraint(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\convertQueryToDoctrineQueryBuilderAddsNotConstraint(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\convertQueryToDoctrineQueryBuilderAddsOrConstraint(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\convertQueryToDoctrineQueryBuilderAddsSimpleAndWhere(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\convertQueryToDoctrineQueryBuilderDoesNotAddAndWhereWithEmptyConstraint(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\convertQueryToDoctrineQueryBuilderThrowsExceptionOnNotImplementedConstraint(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\FormViewHelperTest\createRequest(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\expressionIsGeneratedForDoNotIgnoreEnableFieldsAndDoNotIncludeDeletedInFrontendContext(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\expressionIsGeneratedForIgnoreEnableFieldsAndDoNotIncludeDeletedInFrontendContext(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\expressionIsGeneratedForIgnoreOnlyFeGroupAndDoNotIncludeDeletedInFrontendContext(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\expressionIsOmittedForIgnoreEnableFieldsAreAndDoNotIncludeDeletedInFrontendContext(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\generatedLikeExpressionIsCaseInsensitive(), TYPO3\CMS\Form\Tests\Unit\Mvc\Configuration\ConfigurationManagerTest\getConfigurationDoesNotEvaluateTypoScriptLookalikeInstructionsFromYamlSettingsInFrontendContext(), TYPO3\CMS\Frontend\Tests\Functional\ContentObject\ContentObjectRendererTest\getDataWithTypeAssetReturnsVersionedUri(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbBackendTest\getObjectDataByQueryChangesUidIfInPreview(), TYPO3\CMS\Frontend\Http\Application\handle(), TYPO3\CMS\Core\Tests\Unit\Http\ApplicationTypeTest\isBackendReturnsTrueIfNotBackend(), TYPO3\CMS\Core\Tests\Unit\Http\ApplicationTypeTest\isFrontendReturnsTrueIfFrontend(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainIgnoresScheme(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainReturnsFalseIfDomainsAreDifferent(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\languageStatementWorksForDefaultLanguage(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\languageStatementWorksForNonDefaultLanguage(), TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest\linkForRedirectToAccessRestrictedPageIsBuild(), TYPO3\CMS\Extbase\Tests\Functional\Utility\LocalizationUtilityTest\loadTypoScriptLabels(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\orderStatementGenerationThrowsExceptionOnUnsupportedOrder(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\orderStatementGenerationWorks(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\orderStatementGenerationWorksWithMultipleOrderings(), TYPO3\CMS\Core\Tests\Functional\Page\PageRendererTest\pageRendererRendersFooterValues(), TYPO3\CMS\Core\Tests\Functional\Page\PageRendererTest\pageRendererRendersFooterValuesDataProvider(), TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest\prefixIsCorrectlyAppliedToGetImageUri(), TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest\prefixIsCorrectlyAppliedToGetImageUriWithForcedAbsoluteUrl(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\ActionViewHelperTest\renderInFrontendCoreContextThrowsExceptionWithIncompleteArguments(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\ActionViewHelperTest\renderInFrontendCoreContextThrowsExceptionWithIncompleteArguments(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInFrontendWithCoreContext(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInFrontendWithCoreContext(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\ActionViewHelperTest\renderInFrontendWithCoreContextAndAllNecessaryExtbaseArguments(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\ActionViewHelperTest\renderInFrontendWithCoreContextAndAllNecessaryExtbaseArguments(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\ActionViewHelperTest\renderInFrontendWithExtbaseContext(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\ActionViewHelperTest\renderInFrontendWithExtbaseContext(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Uri\PageViewHelperTest\renderInFrontendWithExtbaseContext(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\PageViewHelperTest\renderInFrontendWithExtbaseContext(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\TranslateViewHelperTest\renderInNonExtbaseContextHandlesLocaleFromFrontendRequest(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Web\RequestBuilderTest\resolveActionNameReturnsActionDefinedViaPageArgumentOfServerRequest(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\respectEnableFieldsSettingGeneratesCorrectStatementWithOnlyEndTimeInFrontendContext(), TYPO3\CMS\Extbase\Tests\Functional\Service\ExtensionServiceTest\setUp(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\TranslationTest\setUp(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\TypolinkViewHelperTest\setUp(), TYPO3\CMS\FrontendLogin\Tests\Unit\Service\RecoveryServiceTest\setUp(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\setUpFakeSitePathAndHost(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\WorkspaceTest\setupSubjectInBackend(), TYPO3\CMS\Extbase\Tests\Functional\Persistence\WorkspaceTest\setupSubjectInFrontend(), TYPO3\CMS\Extbase\Tests\Functional\Mvc\Web\RequestBuilderTest\silentlyIgnoreInvalidParameterAndUseDefaultAction(), TYPO3\CMS\Extbase\Tests\Functional\Utility\LocalizationUtilityTest\translateWillReturnLabelsFromTsEvenIfNoXlfFileExists(), TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest\uriForSetsPluginNameFromRequestIfPluginNameIsNotSetInFrontend(), and TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest\visibilityConstraintStatementGenerationThrowsExceptionIfTheQuerySettingsAreInconsistent().

◆ REQUESTTYPE_INSTALL

const TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_INSTALL = 16