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

Static Public Member Functions

static initialize (ApplicationContext $context, bool $cli, bool $composerMode, string $projectPath, string $publicPath, string $varPath, string $configPath, string $currentScript, string $os)
 
static ApplicationContext getContext ()
 
static bool isComposerMode ()
 
static bool isCli ()
 
static string getProjectPath ()
 
static string getComposerRootPath ()
 
static string getPublicPath ()
 
static string getVarPath ()
 
static string getConfigPath ()
 
static string getCurrentScript ()
 
static string getLabelsPath ()
 
static string getBackendPath ()
 
static string getFrameworkBasePath ()
 
static string getExtensionsPath ()
 
static string getLegacyConfigPath ()
 
static bool isWindows ()
 
static bool isUnix ()
 
static bool isRunningOnCgiServer ()
 
static usesCgiFixPathInfo ()
 
static array toArray ()
 

Static Protected Attributes

static array $supportedCgiServerApis
 
static bool $cli
 
static bool $composerMode
 
static ApplicationContext $context
 
static string $projectPath
 
static string $composerRootPath
 
static string $publicPath
 
static string $currentScript
 
static string $os
 
static string $varPath
 
static string $configPath
 

Detailed Description

This class is initialized once in the SystemEnvironmentBuilder, and can then be used throughout the application to access common variables related to path-resolving and OS-/PHP-application specific information.

It's main design goal is to remove any access to constants within TYPO3 code and to provide a static, for TYPO3 core and extensions non-changeable information.

This class does not contain any HTTP related information, as this is handled in NormalizedParams functionality.

All path-related methods do return the realpath to the paths without (!) the trailing slash.

This class only defines what is configured through the environment, does not do any checks if paths exist etc. This should be part of the application or the SystemEnvironmentBuilder.

In your application, use it like this: "Environment::isCli()"

Definition at line 40 of file Environment.php.

Member Function Documentation

◆ getBackendPath()

static string TYPO3\CMS\Core\Core\Environment::getBackendPath ( )
static

Previously known as PATH_typo3 Please note that this might be gone at some point

Returns
‪string

Definition at line 274 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\getPublicPath().

Referenced by TYPO3\CMS\Backend\Routing\UriBuilder\buildUri(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\concatenateCssFilesWorksWithFileFromNonRootPath(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsNullForNotMatchingApplicationContexts(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsTrueForMatchingContexts(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\exceptionHandlerIsEnabledByDefaultInProductionContext(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrl(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder(), TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\ConstantConfigurationParserTest\getConfigurationAsValuedIgnoresConstantsInConditions(), TYPO3\CMS\Core\Resource\ResourceCompressor\getFilenameFromMainDir(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextWithSubFolder(), TYPO3\CMS\Core\Resource\ResourceCompressor\initialize(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainIgnoresScheme(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInBackendContext(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\set_no_cache(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlClearsUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrl(), and TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrlInSubdirectory().

◆ getComposerRootPath()

static string TYPO3\CMS\Core\Core\Environment::getComposerRootPath ( )
static

In most cases in composer-mode setups this is the same as project path. However since the project path is configurable, the paths may differ. In future versions this configurability will go away and this method will be removed. This path is only required for some internal path handling regarding package paths until then.

Returns
‪string The absolute path to the composer root directory without the trailing slash

Definition at line 189 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$composerRootPath.

Referenced by TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath().

◆ getConfigPath()

static string TYPO3\CMS\Core\Core\Environment::getConfigPath ( )
static

The folder where all global (= installation-wide) configuration like

  • ‪LocalConfiguration.php,
  • ‪AdditionalConfiguration.php, and
  • ‪PackageStates.php is put. This folder usually has to be writable for TYPO3 in order to work.

When project path = public path, then this folder is usually typo3conf/, otherwise it's set to $project_path/config.

Returns
‪string

Definition at line 234 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$configPath.

Referenced by TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\concatenateCssFilesWorksWithFileFromNonRootPath(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\createVersionNumberedFilenameKeepsInvalidAbsolutePathInFrontendAndAddsQueryString(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsNullForNotMatchingApplicationContexts(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsTrueForMatchingContexts(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\exceptionHandlerIsEnabledByDefaultInProductionContext(), TYPO3\CMS\Install\Controller\InstallerController\executeDatabaseConnectAction(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrl(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\getCanonicalPathCorrectlyCleansPath(), TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\ConstantConfigurationParserTest\getConfigurationAsValuedIgnoresConstantsInConditions(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextWithSubFolder(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInFrontendContext(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\getFirstInstallFilePaths(), TYPO3\CMS\Core\ServiceProvider\getSiteConfiguration(), TYPO3\CMS\Extensionmanager\Utility\InstallUtility\importSiteConfiguration(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\isAbsolutePathRespectsAllOperatingSystems(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainIgnoresScheme(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\locationHeaderUrl(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\publicUrlIsCalculatedCorrectlyWithDifferentBasePathsAndBasUris(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\removeFirstInstallFile(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicFolderWhenProjectRootIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectThrowsExceptionFromPrivateExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInFrontendContext(), TYPO3\CMS\Core\Tests\Unit\Page\ImportMapTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\simulateCliRequestInComposerMode(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsMovedIntoPlace(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsNotOverriddenIfExistsAlready(), TYPO3\CMS\Core\Core\Environment\toArray(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\typolinkLinkResult(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\typolinkOpensInNewWindow(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\typoLinkProperlyEncodesLinkResult(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\typolinkReturnsCorrectLinksForEmailsAndUrls(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlClearsUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrl(), and TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrlInSubdirectory().

◆ getContext()

static ApplicationContext TYPO3\CMS\Core\Core\Environment::getContext ( )
static

Delivers the ApplicationContext object, usually defined in TYPO3_CONTEXT environment variables. This is something like "Production", "Testing", or "Development" or any additional information "Production/Staging".

Returns
ApplicationContext

Definition at line 139 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$context.

Referenced by TYPO3\CMS\Core\ExpressionLanguage\SiteConditionProvider\__construct(), TYPO3\CMS\Core\ExpressionLanguage\TypoScriptConditionProvider\__construct(), TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\Fixtures\Crypto\PasswordHashing\NoopPasswordHash\__construct(), TYPO3\CMS\Core\Console\CommandApplication\__construct(), TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem\addApplicationContext(), TYPO3\CMS\Core\Page\ImportMap\computeImportMaps(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\concatenateCssFilesWorksWithFileFromNonRootPath(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\createVersionNumberedFilenameKeepsInvalidAbsolutePathInFrontendAndAddsQueryString(), TYPO3\CMS\Install\Tests\Functional\Controller\BackendModuleControllerTest\environmentContextIsRespectedTest(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrl(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder(), TYPO3\CMS\Install\Controller\EnvironmentController\getApplicationContextInformation(), TYPO3\CMS\Install\Controller\BackendModuleController\getBackendUserConfirmationRedirect(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\getCanonicalPathCorrectlyCleansPath(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getExceptionHandlerStatus(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextWithSubFolder(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInFrontendContext(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\getFirstInstallFilePaths(), TYPO3\CMS\Install\Configuration\Context\DebugPreset\getPriority(), TYPO3\CMS\Install\Configuration\Context\LivePreset\getPriority(), TYPO3\CMS\Core\Core\Bootstrap\init(), TYPO3\CMS\Install\Controller\LayoutController\initAction(), TYPO3\CMS\Install\Controller\InstallerController\initAction(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\isAbsolutePathRespectsAllOperatingSystems(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainIgnoresScheme(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isSystemMaintainer(), TYPO3\CMS\Core\Core\ClassLoadingInformation\isTestingContext(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\locationHeaderUrl(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\publicUrlIsCalculatedCorrectlyWithDifferentBasePathsAndBasUris(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\removeFirstInstallFile(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicFolderWhenProjectRootIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectThrowsExceptionFromPrivateExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInFrontendContext(), TYPO3\CMS\Core\Tests\Unit\Page\ImportMapTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\simulateCliRequestInComposerMode(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsMovedIntoPlace(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsNotOverriddenIfExistsAlready(), TYPO3\CMS\Install\Controller\SettingsController\systemMaintainerGetListAction(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlClearsUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrl(), and TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrlInSubdirectory().

◆ getCurrentScript()

static string TYPO3\CMS\Core\Core\Environment::getCurrentScript ( )
static

The path + filename to the current PHP script.

Returns
‪string

Definition at line 244 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$currentScript.

Referenced by TYPO3\CMS\Core\Http\NormalizedParams\createFromServerParams(), TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\getCanonicalPathCorrectlyCleansPath(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\getFirstInstallFilePaths(), TYPO3\CMS\Core\Utility\PathUtility\getRelativePathTo(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\isAbsolutePathRespectsAllOperatingSystems(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\locationHeaderUrl(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\publicUrlIsCalculatedCorrectlyWithDifferentBasePathsAndBasUris(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\removeFirstInstallFile(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicFolderWhenProjectRootIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectThrowsExceptionFromPrivateExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Page\ImportMapTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\simulateCliRequestInComposerMode(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsMovedIntoPlace(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsNotOverriddenIfExistsAlready(), and TYPO3\CMS\Core\Core\Environment\toArray().

◆ getExtensionsPath()

◆ getFrameworkBasePath()

◆ getLabelsPath()

◆ getLegacyConfigPath()

◆ getProjectPath()

static string TYPO3\CMS\Core\Core\Environment::getProjectPath ( )
static

The root path to the project. For installations set up via composer, this is the path where your composer.json file is stored. For non-composer-setups, this is (due to legacy reasons) the public web folder where the TYPO3 installation has been unzipped (something like htdocs/ or public/ on your webfolder). However, non-composer-mode installations define an environment variable called "TYPO3_PATH_APP" to define a different folder (usually a parent folder) to allow TYPO3 to access and store data outside of the public web folder.

Returns
‪string The absolute path to the project without the trailing slash

Definition at line 175 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$projectPath.

Referenced by TYPO3\CMS\Install\Service\WebServerConfigurationFileService\__construct(), TYPO3\CMS\Core\Package\Cache\PackageDependentCacheIdentifier\__construct(), TYPO3\CMS\Core\Locking\FileLockStrategy\__construct(), TYPO3\CMS\Core\Locking\SemaphoreLockStrategy\__construct(), TYPO3\CMS\Core\Locking\SimpleLockStrategy\__construct(), TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\AbstractCest\_after(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\buildSimpleGifBuilderImageInComposerMode(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\calculatedBasePathAbsoluteIsSane(), TYPO3\CMS\Core\Page\ImportMap\computeImportMaps(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\concatenateCssFilesWorksWithFileFromNonRootPath(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\createVersionNumberedFilenameKeepsInvalidAbsolutePathInFrontendAndAddsQueryString(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsNullForNotMatchingApplicationContexts(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsTrueForMatchingContexts(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\exceptionHandlerIsEnabledByDefaultInProductionContext(), TYPO3\CMS\Install\Controller\InstallerController\executeDatabaseConnectAction(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrl(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\getCanonicalPathCorrectlyCleansPath(), TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\ConstantConfigurationParserTest\getConfigurationAsValuedIgnoresConstantsInConditions(), TYPO3\CMS\Install\FolderStructure\DefaultFactory\getDefaultStructureDefinition(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextWithSubFolder(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInFrontendContext(), TYPO3\CMS\Install\Report\InstallStatusReport\getFileSystemStatus(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\getFirstInstallFilePaths(), TYPO3\CMS\Install\FolderStructure\AbstractNode\getRelativePathBelowSiteRoot(), TYPO3\CMS\Install\Controller\LayoutController\initAction(), TYPO3\CMS\Install\Controller\InstallerController\initAction(), TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\LoginCest\installToolLogin(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\isAbsolutePathRespectsAllOperatingSystems(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainIgnoresScheme(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\locationHeaderUrl(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\removeFirstInstallFile(), TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer\renderContentElementPreviewFromFluidTemplate(), TYPO3\CMS\Backend\View\PageLayoutView\renderContentElementPreviewFromFluidTemplate(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicFolderWhenProjectRootIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectThrowsExceptionFromPrivateExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInFrontendContext(), TYPO3\CMS\Core\Cache\Backend\ApcuBackend\setCache(), TYPO3\CMS\Core\Cache\Backend\MemcachedBackend\setCache(), TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend\setCacheDirectory(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest\setCacheDirectoryAllowsRelativeDottedPathWithoutTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest\setCacheDirectoryAllowsRelativeDottedPathWithTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest\setCacheDirectoryAllowsRelativePathWithoutTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest\setCacheDirectoryAllowsRelativePathWithTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Page\ImportMapTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\simulateCliRequestInComposerMode(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsMovedIntoPlace(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsNotOverriddenIfExistsAlready(), TYPO3\CMS\Core\Core\Environment\toArray(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlClearsUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrlInSubdirectory(), and TYPO3\CMS\Core\Utility\GeneralUtility\writeFileToTypo3tempDir().

◆ getPublicPath()

static string TYPO3\CMS\Core\Core\Environment::getPublicPath ( )
static

The public web folder where index.php (= the frontend application) is put, without trailing slash. For non-composer installations, the project path = the public path.

Returns
‪string

Definition at line 204 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$publicPath.

Referenced by TYPO3\CMS\Install\Service\WebServerConfigurationFileService\__construct(), TYPO3\CMS\Install\SystemEnvironment\ServerResponse\FileLocation\__construct(), TYPO3\CMS\Core\Resource\LocalPath\__construct(), TYPO3\CMS\Impexp\ImportExport\addFiles(), TYPO3\CMS\Install\Tests\Functional\Service\WebServerConfigurationFileServiceTest\addWebServerSpecificBackendRoutingRewriteRulesTest(), TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest\bestStorageIsResolved(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\buildImageInCommandLineInterfaceAndComposerMode(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\buildImageWithMaskInCommandLineInterfaceAndComposerMode(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\buildSimpleGifBuilderImageInComposerMode(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\calculateBasePath(), TYPO3\CMS\Impexp\Import\checkOrCreateDir(), TYPO3\CMS\Install\Service\CoreUpdateService\checkPreConditions(), TYPO3\CMS\Install\Service\Typo3tempFileService\clearAssetsFolder(), TYPO3\CMS\Core\Resource\ResourceCompressor\compressCssFile(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\compressCssFileContent(), TYPO3\CMS\Core\Resource\ResourceCompressor\compressJsFile(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\concatenateCssFiles(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\concatenateCssFilesWorksWithFileFromNonRootPath(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithAbsolutePaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\copyDirectoryCopiesFilesAndDirectoriesWithRelativePaths(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\copyFileGeneratesNewFileNameWhenFileAlreadyExistsInTargetFolderAndConflictModeIsRename(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\copyFileThrowsErrorWhenFileWithSameNameAlreadyExistsInTargetFolderAndConflictModeIsCancel(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\copyFolderGeneratesNewFolderNameWhenFolderAlreadyExistsInTargetFolderAndConflictModeIsRename(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\copyFolderThrowsErrorWhenFolderAlreadyExistsInTargetFolderAndConflictModeIsCancel(), TYPO3\CMS\Install\Controller\UpgradeController\coreUpdateGetDataAction(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Fluid\ViewHelpers\Link\FileViewHelper\createFileDumpUrl(), TYPO3\CMS\Core\Http\NormalizedParams\createFromServerParams(), TYPO3\CMS\IndexedSearch\Indexer\createLocalPathFromAbsoluteURL(), TYPO3\CMS\IndexedSearch\Indexer\createLocalPathFromRelativeURL(), TYPO3\CMS\IndexedSearch\Indexer\createLocalPathUsingAbsRefPrefix(), TYPO3\CMS\IndexedSearch\Indexer\createLocalPathUsingDomainURL(), TYPO3\CMS\Core\Resource\StorageRepository\createLocalStorage(), TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest\createLocalStorages(), TYPO3\CMS\Core\Log\Writer\FileWriter\createLogFile(), TYPO3\CMS\Core\Resource\ResourceCompressor\createMergedFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\createVersionNumberedFilenameKeepsInvalidAbsolutePathInFrontendAndAddsQueryString(), TYPO3\CMS\Impexp\Tests\Functional\ExportTest\creationAndDeletionOfDefaultImportExportFolderSucceeds(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\deleteFileMovesFileToRecyclerFolderIfAvailable(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\deleteFileUnlinksFileIfNoRecyclerFolderAvailable(), TYPO3\CMS\Core\Resource\Driver\LocalDriver\determineBaseUrl(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\determineBaseUrlUrlEncodesUriParts(), TYPO3\CMS\Install\Service\CoreUpdateService\discoverCurrentCoreSymlink(), TYPO3\CMS\Core\Core\ClassLoadingInformation\dumpClassLoadingInformation(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsNullForNotMatchingApplicationContexts(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsTrueForMatchingContexts(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\exceptionHandlerIsEnabledByDefaultInProductionContext(), TYPO3\CMS\Install\Controller\InstallerController\executeDatabaseConnectAction(), TYPO3\CMS\Impexp\Export\exportAddFile(), TYPO3\CMS\Impexp\Export\exportAddFilesFromRelations(), TYPO3\CMS\Impexp\Tests\Functional\Command\ExportCommandTest\exportCommandSavesExportWithGivenFileName(), TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest\extractHyperLinksFindsCorrectPathForPathWithinTypo3Directory(), TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest\extractHyperLinksFindsCorrectPathUsingAbsRefPrefix(), TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest\extractHyperLinksFindsCorrectPathWithAbsolutePath(), TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest\extractHyperLinksReturnsCorrectPathWithBaseUrl(), TYPO3\CMS\IndexedSearch\Indexer\extractLinks(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\fallbacksForLayoutRootPathAreAppendedToLayoutRootPath(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\fallbacksForLayoutRootPathAreSet(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\fallbacksForPartialRootPathAreAppendedToPartialRootPath(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\fallbacksForPartialRootPathAreSet(), TYPO3\CMS\Impexp\Export\fixFileIdInRelations(), TYPO3\CMS\Impexp\Tests\Unit\ExportTest\fixFileIdInRelationsProcessesOriginalRelationsArray(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsWithRelativeFileReference(), TYPO3\CMS\Impexp\Export\flatSoftRefs(), TYPO3\CMS\Install\Controller\EnvironmentController\folderStructureGetStatusAction(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrl(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder(), TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), TYPO3\CMS\Core\Core\Environment\getBackendPath(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\getCanonicalPathCorrectlyCleansPath(), TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\ConstantConfigurationParserTest\getConfigurationAsValuedIgnoresConstantsInConditions(), TYPO3\CMS\Install\FolderStructure\DefaultFactory\getDefaultStructureDefinition(), TYPO3\CMS\Core\Tests\Functional\Authentication\BackendUserAuthenticationTest\getDefaultUploadFolderFallsBackToDefaultStorage(), TYPO3\CMS\Core\Core\Environment\getExtensionsPath(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getFileAbsFileNameDataProvider(), TYPO3\CMS\Core\Resource\ResourceCompressor\getFilenameFromMainDir(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextDataProvider(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextInSubfolderDataProvider(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextWithSubFolder(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInFrontendContext(), TYPO3\CMS\Install\Report\InstallStatusReport\getFileSystemStatus(), TYPO3\CMS\Install\Service\EnableFileService\getFirstInstallFilePaths(), TYPO3\CMS\Core\Resource\ResourceFactory\getFolderObjectFromCombinedIdentifier(), TYPO3\CMS\Core\Core\Environment\getFrameworkBasePath(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\getImageResourceInCommandLineInterfaceAndComposerMode(), TYPO3\CMS\Frontend\ContentObject\ImageContentObject\getImageSourceCollection(), TYPO3\CMS\Install\Controller\EnvironmentController\getImagesPath(), TYPO3\CMS\Install\Service\EnableFileService\getInstallToolEnableFilePath(), TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolProtectionStatus(), TYPO3\CMS\Core\Core\Environment\getLabelsPath(), TYPO3\CMS\Core\Core\Environment\getLegacyConfigPath(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getMailTemplatePathsReplacesTemplatePathsWithPathsConfiguredInTypoScript(), TYPO3\CMS\FrontendLogin\Tests\Unit\Configuration\RecoveryConfigurationTest\getMailTemplatePathsReturnsAnInstanceOfTemplatePathsObjectWithConfigurationOfTypoScript(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\getNestedProcessingFolderTest(), TYPO3\CMS\Core\Utility\PathUtility\getPublicResourceWebPath(), TYPO3\CMS\Core\Resource\ResourceStorage\getPublicUrl(), TYPO3\CMS\Install\Service\CoreUpdateService\getRelativePath(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\AbstractNodeTest\getRelativePathBelowSiteRootReturnsSingleForwardSlashIfGivenPathEqualsPathSiteConstant(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\AbstractNodeTest\getRelativePathBelowSiteRootReturnsSubPath(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\AbstractNodeTest\getRelativePathCallsGetAbsolutePathIfPathIsNull(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\RootNodeTest\getStatusCallsGetChildrenStatusForStatus(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\FileNodeTest\getStatusReturnsArray(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\RootNodeTest\getStatusReturnsArrayWithOkStatusAndCallsOwnStatusMethods(), TYPO3\CMS\Core\Resource\StorageRepository\getStorageObject(), TYPO3\CMS\Form\Slot\ResourcePublicationSlot\getStreamUrl(), TYPO3\CMS\Core\Resource\OnlineMedia\Helpers\AbstractOnlineMediaHelper\getTempFolderPath(), TYPO3\CMS\Frontend\Imaging\GifBuilder\gifBuild(), TYPO3\CMS\Backend\Tests\Functional\Controller\MfaConfigurationControllerTest\handleRequestRespectsReturnUrlTest(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\imageMagickConvert(), TYPO3\CMS\Install\Controller\EnvironmentController\imageProcessingTrueTypeAction(), TYPO3\CMS\Impexp\Tests\Functional\Import\ImagesWithStoragesTest\importImagesWithStaticAndFallbackStorages(), TYPO3\CMS\Impexp\Tests\Functional\Import\ImagesWithStoragesTest\importMultipleImagesWithMultipleStorages(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentTest\importPagesAndRelatedTtContent(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest\importPagesAndRelatedTtContentCanEditFlexFormSoftReference(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest\importPagesAndRelatedTtContentCanKeepOriginalFlexFormSoftReference(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest\importPagesAndRelatedTtContentKeepsRelationBetweenImportedFlexFormSoftReferenceAndRelatedRecord(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest\importPagesAndRelatedTtContentWithDifferentImageToExistingData(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesAndNewStorage(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesButNotIncluded(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseInsensitiveFilesystems(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseSensitiveFilesystems(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesOnCaseInsensitiveFilesystems(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesOnCaseSensitiveFilesystems(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesWithSpacesInPath(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImageWithForcedUids(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithRteImagesAndFileLinkTest\importPagesAndRelatedTtContentWithRteImagesAndFileLink(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest\importPagesAndRelatedTtContentWithSameImageToExistingData(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest\importPagesAndTtContentWithRemappingNewSysFileEntries(), TYPO3\CMS\IndexedSearch\Indexer\indexRegularDocument(), TYPO3\CMS\Core\Resource\ResourceCompressor\initialize(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\initializeCreatesHtaccessFileIfSet(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\initializeCreatesTargetDirectory(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\initializeDoesNotCreateHtaccessFileIfSetToFalse(), TYPO3\CMS\Core\Resource\StorageRepository\initializeLocalStorageCache(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\invalidFilePathForTypo3tempDirDataProvider(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\isAbsolutePathRespectsAllOperatingSystems(), TYPO3\CMS\IndexedSearch\Indexer\isAllowedLocalFile(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\FileNodeTest\isFileReturnsFalseIfNameIsALinkFile(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainIgnoresScheme(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\isRelativePathResolvedCorrectlyDataProvider(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\isWithinFileMountBoundariesRespectsReadOnlyFileMounts(), TYPO3\CMS\Impexp\Tests\Functional\ImportTest\loadingFileFromWithinTypo3BaseFolderSucceeds(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\locationHeaderUrl(), TYPO3\CMS\Frontend\Resource\FilePathSanitizer\makeRelative(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\overlayImagesHasStableHash(), TYPO3\CMS\Core\Tests\Unit\Imaging\IconProvider\BitmapIconProviderTest\prepareIconMarkupWithAbsoluteSourceReturnsInstanceOfIconWithCorrectMarkup(), TYPO3\CMS\Core\Tests\Unit\Imaging\IconProvider\SvgIconProviderTest\prepareIconMarkupWithAbsoluteSourceReturnsInstanceOfIconWithCorrectMarkup(), TYPO3\CMS\Core\Tests\Unit\Imaging\IconProvider\SvgSpriteIconProviderTest\prepareIconMarkupWithAbsoluteSourceReturnsInstanceOfIconWithCorrectMarkup(), TYPO3\CMS\Frontend\Http\RequestHandler\processHtmlBasedRenderingSettings(), TYPO3\CMS\Impexp\Import\processSoftReferencesSaveFileCreateRelFile(), TYPO3\CMS\Core\Resource\Processing\LocalCropScaleMaskHelper\processWithLocalFile(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\readPngGif(), TYPO3\CMS\Core\Core\ClassLoadingInformation\registerTransientClassLoadingInformationForPackage(), TYPO3\CMS\Install\Service\EnableFileService\removeFirstInstallFile(), TYPO3\CMS\Core\Resource\ResourceStorage\renameFile(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsLayoutRootPathInView(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsPartialRootPathInView(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\FluidTemplateContentObjectTest\renderSetsTemplateFileByTemplateInView(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\replaceFileFailsIfLocalFileDoesNotExist(), TYPO3\CMS\Core\LinkHandling\LegacyLinkNotationConverter\resolve(), TYPO3\CMS\Core\Resource\ResourceCompressor\retrieveExternalFile(), TYPO3\CMS\Core\Resource\ResourceFactory\retrieveFileOrFolderObject(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectCallsGetFolderObjectFromCombinedIdentifierWithAbsolutePath(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicFolderWhenProjectRootIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileIfPathIsGiven(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectThrowsExceptionFromPrivateExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Resource\ResourceCompressor\returnFileReference(), TYPO3\CMS\Frontend\Resource\FilePathSanitizer\sanitize(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInFrontendContext(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlValidPathsDataProvider(), TYPO3\CMS\Impexp\Tests\Functional\ExportTest\saveT3dCompressedToFileSucceeds(), TYPO3\CMS\Impexp\Tests\Functional\ExportTest\saveT3dToFileSucceeds(), TYPO3\CMS\Impexp\Tests\Functional\ExportTest\saveToFileCleansUpFormerExportsOfSameName(), TYPO3\CMS\Impexp\Tests\Functional\ExportTest\saveToFileCleansUpTemporaryFolder(), TYPO3\CMS\Impexp\Tests\Functional\ExportTest\saveXmlToFileIsDefaultAndSucceeds(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\searchFilesFindsFilesInFolder(), TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\set_no_cache(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\LinkNodeTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\setupFullTestEnvironment(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\simulateCliRequestInComposerMode(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\PathUtilityPublicPathsTest\simulateTraditionalWebRequest(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateTraditionalWebRequest(), TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\PathUtilityPublicPathsTest\simulateTraditionalWebRequestInSubDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateTraditionalWebRequestInSubDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateWebRequestInComposerMode(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateWebRequestInComposerModeInSubDirectory(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsMovedIntoPlace(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsNotOverriddenIfExistsAlready(), TYPO3\CMS\Install\Service\Typo3tempFileService\statsFromTypo3temp(), TYPO3\CMS\Install\Service\Typo3tempFileService\statsFromTypo3tempProcessed(), TYPO3\CMS\Core\Utility\PathUtility\stripPathSitePrefix(), TYPO3\CMS\Core\Tests\Functional\Resource\ResourceStorageTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\tearDown(), TYPO3\CMS\Fluid\Tests\Functional\ViewHelpers\Link\FileViewHelperTest\tearDown(), TYPO3\CMS\Core\Core\Environment\toArray(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest\updatePagesAndRelatedTtContentKeepsRelationsBetweenImportedPagesAndRecords(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest\updatePagesAndRelatedTtContentWithDifferentImageToExistingData(), TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest\updatePagesAndRelatedTtContentWithDifferentImageToExistingDataAndPagesAsNew(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlClearsUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrlInSubdirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validFilePathForTypo3tempDirDataProvider(), TYPO3\CMS\Core\Resource\ResourceCompressor\writeFileAndCompressed(), and TYPO3\CMS\Core\Utility\GeneralUtility\writeFileToTypo3tempDir().

◆ getVarPath()

static string TYPO3\CMS\Core\Core\Environment::getVarPath ( )
static

The folder where variable data like logs, sessions, locks, and cache files can be stored. When project path = public path, then this folder is usually typo3temp/var/, otherwise it's set to $project_path/var.

Returns
‪string

Definition at line 216 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$varPath.

Referenced by TYPO3\CMS\Core\Locking\FileLockStrategy\__construct(), TYPO3\CMS\Extensionmanager\Remote\TerExtensionRemote\__construct(), TYPO3\CMS\Core\Locking\SemaphoreLockStrategy\__construct(), TYPO3\CMS\Core\Locking\SimpleLockStrategy\__construct(), TYPO3\CMS\Install\Service\CoreUpdateService\__construct(), TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaSelectItemsTest\addDataAddsFileItemsWithConfiguredFileFolder(), TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaSelectItemsTest\addDataAddsFileItemsWithOverwrittenFileFolder(), TYPO3\CMS\Core\Tests\Functional\Command\CacheFlushCommandTest\cachesCanBeFlushed(), TYPO3\CMS\Core\Tests\Functional\Command\CacheWarmupCommandTest\cachesCanBeWarmed(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\calculatedBasePathAbsoluteIsSane(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\concatenateCssFilesWorksWithFileFromNonRootPath(), TYPO3\CMS\Core\Tests\Unit\Locking\FileLockStrategyTest\constructorCreatesLockDirectoryIfNotExisting(), TYPO3\CMS\Core\Tests\Unit\Locking\SimpleLockStrategyTest\constructorCreatesLockDirectoryIfNotExisting(), TYPO3\CMS\Core\Tests\Unit\Locking\FileLockStrategyTest\constructorSetsFilePathToExpectedValue(), TYPO3\CMS\Core\Tests\Unit\Locking\SimpleLockStrategyTest\constructorSetsResourceToPathWithIdIfUsingSimpleLocking(), TYPO3\CMS\Extensionmanager\Controller\UploadExtensionFileController\copyExtensionFolderToTempFolder(), TYPO3\CMS\Extensionmanager\Tests\Unit\Controller\ActionControllerTest\createFakeExtension(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\createFakeExtension(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Core\Tests\Unit\Configuration\ConfigurationManagerTest\createLocalConfigurationFromFactoryConfigurationWritesContentFromFactoryFile(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\createRealTestdir(), TYPO3\CMS\Core\Tests\Unit\Http\StreamFactoryTest\createStreamFromFileWithMissingFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\createVersionNumberedFilenameDoesNotResolveBackpathForAbsolutePath(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\createVersionNumberedFilenameKeepsInvalidAbsolutePathInFrontendAndAddsQueryString(), TYPO3\CMS\Extensionmanager\Controller\ActionController\createZipFileFromExtension(), TYPO3\CMS\Extensionmanager\Tests\Unit\Controller\ActionControllerTest\createZipFileFromExtensionGeneratesCorrectArchive(), TYPO3\CMS\Core\Tests\Functional\Command\CacheFlushCommandTest\diCachesCanBeFlushed(), TYPO3\CMS\Core\Tests\Functional\Command\CacheWarmupCommandTest\diCachesDoesNotWarmSystemCaches(), TYPO3\CMS\Core\Tests\Unit\Type\File\ImageInfoTest\doesNotBreakOnImageInfoWithInvalidSvg(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsNullForNotMatchingApplicationContexts(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsTrueForMatchingContexts(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\exceptionHandlerIsEnabledByDefaultInProductionContext(), TYPO3\CMS\Install\Controller\InstallerController\executeDatabaseConnectAction(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\AbstractNodeTest\existsReturnsTrueIfIsLinkAndTargetIsDead(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\filesCanBeCopiedToATemporaryPath(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsDoesNotSetPermissionsToNotAllowedPath(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrl(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\getCanonicalPathCorrectlyCleansPath(), TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\ConstantConfigurationParserTest\getConfigurationAsValuedIgnoresConstantsInConditions(), TYPO3\CMS\Core\Log\Writer\FileWriter\getDefaultLogFileName(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextWithSubFolder(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInFrontendContext(), TYPO3\CMS\Install\Report\InstallStatusReport\getFileSystemStatus(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\getFirstInstallFilePaths(), TYPO3\CMS\Core\Core\Environment\getLabelsPath(), TYPO3\CMS\Core\Tests\Unit\Mail\TransportFactoryTest\getReturnsMailerTransportInterface(), TYPO3\CMS\Core\Tests\Unit\Mail\TransportFactoryTest\getReturnsSpoolTransportUsingCustomSpool(), TYPO3\CMS\Core\Tests\Unit\Mail\TransportFactoryTest\getReturnsSpoolTransportUsingMemorySpool(), TYPO3\CMS\Install\Tests\Unit\FolderStructureTestCase\getTestDirectory(), TYPO3\CMS\Core\Tests\Unit\Http\StreamFactoryTest\getTestDirectory(), TYPO3\CMS\Core\Tests\Unit\Http\StreamTest\getTestDirectory(), TYPO3\CMS\Core\Tests\Unit\Configuration\ConfigurationManagerTest\getTestDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\getTestDirectory(), TYPO3\CMS\Core\Tests\Unit\Mail\TransportFactoryTest\getThrowsRuntimeExceptionForInvalidCustomSpool(), TYPO3\CMS\Impexp\Tests\Functional\ImportTest\importDataCleansUpTemporaryFolder(), TYPO3\CMS\Core\Charset\CharsetConverter\initCharset(), TYPO3\CMS\Core\Charset\CharsetConverter\initToASCII(), TYPO3\CMS\Core\Charset\CharsetConverter\initUnicodeData(), TYPO3\CMS\Core\Tests\Unit\Locking\SimpleLockStrategyTest\invalidFileReferences(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\isAbsolutePathRespectsAllOperatingSystems(), TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest\isDirectoryReturnsFalseIfNameIsALinkToADirectory(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainIgnoresScheme(), TYPO3\CMS\Install\Service\LanguagePackService\languagePackDownload(), TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest\linkForRedirectToAccessRestrictedPageIsBuild(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\locationHeaderUrl(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepCreatesDirectoryWithDoubleSlashes(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepFixesPermissionsOfCreatedDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepFixesPermissionsOnNewParentDirectory(), TYPO3\CMS\Core\Tests\Functional\Command\CacheFlushCommandTest\pageCachesCanBeFlushed(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\publicUrlIsCalculatedCorrectlyWithDifferentBasePathsAndBasUris(), TYPO3\CMS\Core\Imaging\GraphicalFunctions\randomName(), TYPO3\CMS\Core\Locking\SimpleLockStrategy\release(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\removeFirstInstallFile(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicFolderWhenProjectRootIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectThrowsExceptionFromPrivateExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirRemovesFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirRemovesLinkToDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\rmdirReturnFalseIfNoFileWasRemoved(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInFrontendContext(), TYPO3\CMS\Impexp\Tests\Functional\ExportTest\saveToFileCleansUpTemporaryFolder(), TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend\setCache(), TYPO3\CMS\Core\Tests\Unit\Package\PackageTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Log\Writer\FileWriterTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Mail\FileSpoolTest\setUp(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\FileHandlingUtilityTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Configuration\SiteConfigurationTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Page\ImportMapTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\simulateCliRequestInComposerMode(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsMovedIntoPlace(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsNotOverriddenIfExistsAlready(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\splitFileRefReturnsFileTypeNotForFolders(), TYPO3\CMS\Core\Tests\Functional\Command\CacheFlushCommandTest\systemCachesCanBeFlushed(), TYPO3\CMS\Core\Tests\Functional\Command\CacheWarmupCommandTest\systemCachesCanBeWarmed(), TYPO3\CMS\Core\Tests\Functional\Command\CacheWarmupCommandTest\systemCachesCanBeWarmedIfCacheIsBroken(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\tearDown(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\tempnamReturnsAbsolutePathInVarPath(), TYPO3\CMS\Core\Core\Environment\toArray(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\unlink_tempfileRemovesHiddenFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\unlink_tempfileRemovesValidFileInTypo3temp(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\unlink_tempfileReturnsNullIfFileDoesNotExist(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlClearsUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrlInSubdirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\validFilePathForTypo3tempDirDataProvider(), and TYPO3\CMS\Core\Utility\GeneralUtility\writeFileToTypo3tempDir().

◆ initialize()

static TYPO3\CMS\Core\Core\Environment::initialize ( ApplicationContext  $context,
bool  $cli,
bool  $composerMode,
string  $projectPath,
string  $publicPath,
string  $varPath,
string  $configPath,
string  $currentScript,
string  $os 
)
static

Sets up the Environment. Please note that this is not public API and only used within the very early Set up of TYPO3, or to be used within tests. If you ever call this method in your extension, you're probably doing something wrong. Never call this method! Never rely on it!

Parameters
ApplicationContext$context
bool$cli
bool$composerMode
string$projectPath
string$publicPath
string$varPath
string$configPath
string$currentScript
string$os

Definition at line 109 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$cli, TYPO3\CMS\Core\Core\Environment\$composerMode, TYPO3\CMS\Core\Core\Environment\$configPath, TYPO3\CMS\Core\Core\Environment\$context, TYPO3\CMS\Core\Core\Environment\$currentScript, TYPO3\CMS\Core\Core\Environment\$os, TYPO3\CMS\Core\Core\Environment\$projectPath, TYPO3\CMS\Core\Core\Environment\$publicPath, TYPO3\CMS\Core\Core\Environment\$varPath, and TYPO3\CMS\Core\Utility\PathUtility\getCanonicalPath().

Referenced by TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\concatenateCssFilesWorksWithFileFromNonRootPath(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\createVersionNumberedFilenameKeepsInvalidAbsolutePathInFrontendAndAddsQueryString(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsNullForNotMatchingApplicationContexts(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsTrueForMatchingContexts(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\exceptionHandlerIsEnabledByDefaultInProductionContext(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrl(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\getCanonicalPathCorrectlyCleansPath(), TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\ConstantConfigurationParserTest\getConfigurationAsValuedIgnoresConstantsInConditions(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextWithSubFolder(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInFrontendContext(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\getFirstInstallFilePaths(), TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\initializeEnvironment(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest\isAbsolutePathRespectsAllOperatingSystems(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainIgnoresScheme(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\locationHeaderUrl(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\publicUrlIsCalculatedCorrectlyWithDifferentBasePathsAndBasUris(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\removeFirstInstallFile(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicFolderWhenProjectRootIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectThrowsExceptionFromPrivateExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInFrontendContext(), TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\SiteDatabaseEditRowTest\setUp(), TYPO3\CMS\Core\Tests\Unit\Page\ImportMapTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\simulateCliRequestInComposerMode(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlClearsUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrl(), and TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrlInSubdirectory().

◆ isCli()

static bool TYPO3\CMS\Core\Core\Environment::isCli ( )
static

Whether the current PHP request is handled by a CLI SAPI module or not.

Returns
‪bool

Definition at line 160 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$cli.

Referenced by TYPO3\CMS\Core\Authentication\CommandLineUserAuthentication\__construct(), TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\checkAuthentication(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Scheduler\Example\TestTask\execute(), TYPO3\CMS\Core\Hooks\CreateSiteConfiguration\generateSiteConfigurationForRootPage(), TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), TYPO3\CMS\Install\Report\EnvironmentStatusReport\getDetailedStatus(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\getFirstInstallFilePaths(), TYPO3\CMS\Core\Hooks\CreateSiteConfiguration\getNormalizedParams(), TYPO3\CMS\Install\Report\EnvironmentStatusReport\getStatus(), TYPO3\CMS\Extbase\Core\Bootstrap\initialize(), TYPO3\CMS\Scheduler\Task\AbstractTask\markExecution(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\removeFirstInstallFile(), TYPO3\CMS\Core\Utility\DebugUtility\renderDump(), TYPO3\CMS\Core\Messaging\FlashMessageRendererResolver\resolveContext(), TYPO3\CMS\Core\Tests\Unit\Page\ImportMapTest\setUp(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsMovedIntoPlace(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsNotOverriddenIfExistsAlready(), TYPO3\CMS\Core\Core\Environment\toArray(), and TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter\writeLog().

◆ isComposerMode()

static bool TYPO3\CMS\Core\Core\Environment::isComposerMode ( )
static

Informs whether TYPO3 has been installed via composer or not. Typically this is useful inside the Maintenance Modules, or the Extension Manager.

Returns
‪bool

Definition at line 150 of file Environment.php.

References TYPO3\CMS\Core\Core\Environment\$composerMode.

Referenced by TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem\addComposerMode(), TYPO3\CMS\Extensionmanager\Controller\ListController\addComposerModeNotification(), TYPO3\CMS\Core\Core\Bootstrap\baseSetup(), TYPO3\CMS\Core\Core\Bootstrap\checkIfEssentialConfigurationExists(), TYPO3\CMS\Core\ServiceProvider\configureCommands(), TYPO3\CMS\Install\Controller\UpgradeController\coreUpdateGetDataAction(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Core\Core\Bootstrap\createPackageCache(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\determineExecutablePath(), TYPO3\CMS\Extensionmanager\Controller\ActionController\downloadExtensionZipAction(), TYPO3\CMS\Install\Controller\MaintenanceController\dumpAutoloadAction(), TYPO3\CMS\Extensionmanager\Controller\UploadExtensionFileController\extractAction(), TYPO3\CMS\Extensionmanager\Controller\UploadExtensionFileController\formAction(), TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\ConstantConfigurationParserTest\getConfigurationAsValuedIgnoresConstantsInConditions(), TYPO3\CMS\Install\Report\InstallStatusReport\getFileSystemStatus(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\getFirstInstallFilePaths(), TYPO3\CMS\Extensionmanager\Utility\ListUtility\getInstallTypeForPackage(), TYPO3\CMS\Extensionmanager\Controller\ListController\indexAction(), TYPO3\CMS\Core\Core\Bootstrap\init(), TYPO3\CMS\Extensionmanager\Controller\AbstractController\initializeModuleTemplate(), TYPO3\CMS\Install\Controller\AbstractController\initializeView(), TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate\installExtension(), TYPO3\CMS\Install\Service\CoreUpdateService\isCoreUpdateEnabled(), TYPO3\CMS\Extensionmanager\Command\DeactivateExtensionCommand\isEnabled(), TYPO3\CMS\Core\Command\DumpAutoloadCommand\isEnabled(), TYPO3\CMS\Extensionmanager\Command\ActivateExtensionCommand\isEnabled(), TYPO3\CMS\Core\Core\BootService\prepareContainer(), TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService\rawDownload(), TYPO3\CMS\Core\Package\FailsafePackageManager\recreatePackageStatesFileIfMissing(), TYPO3\CMS\Extensionmanager\Controller\ListController\registerDocHeaderButtons(), TYPO3\CMS\Extensionmanager\Controller\ActionController\removeExtensionAction(), TYPO3\CMS\Install\Tests\Unit\Service\EnableFileServiceTest\removeFirstInstallFile(), TYPO3\CMS\Extensionmanager\ViewHelpers\ToggleExtensionInstallationStateViewHelper\render(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\renderCheckView(), TYPO3\CMS\Core\Tests\Unit\Page\ImportMapTest\setUp(), TYPO3\CMS\Install\Controller\InstallerController\showDefaultConfigurationAction(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsMovedIntoPlace(), TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\InstallUtilityTest\siteConfigGetsNotOverriddenIfExistsAlready(), TYPO3\CMS\Extensionmanager\Controller\ActionController\toggleExtensionInstallationStateAction(), TYPO3\CMS\Core\Core\ClassLoadingInformation\updateClassLoadingInformationAfterPackageActivation(), and TYPO3\CMS\Core\Core\ClassLoadingInformation\updateClassLoadingInformationAfterPackageDeactivation().

◆ isRunningOnCgiServer()

static bool TYPO3\CMS\Core\Core\Environment::isRunningOnCgiServer ( )
static

◆ isUnix()

static bool TYPO3\CMS\Core\Core\Environment::isUnix ( )
static

Whether this TYPO3 installation runs on unix (= non-windows machines)

Returns
‪bool

Definition at line 326 of file Environment.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\publicUrlIsCalculatedCorrectlyWithDifferentBasePathsAndBasUris().

◆ isWindows()

static bool TYPO3\CMS\Core\Core\Environment::isWindows ( )
static

Whether this TYPO3 installation runs on windows

Returns
‪bool

Definition at line 316 of file Environment.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Locking\SimpleLockStrategyTest\acquireFixesPermissionsOnLockFile(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addService(), TYPO3\CMS\Core\Utility\CommandUtility\checkCommand(), TYPO3\CMS\Install\SystemEnvironment\SetupCheck\checkLocaleWithUTF8filesystem(), TYPO3\CMS\Install\Service\CoreUpdateService\checkPreConditions(), TYPO3\CMS\Install\SystemEnvironment\SetupCheck\checkSystemLocale(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorIntegrationTest\concatenateCssFilesWorksWithFileFromNonRootPath(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest\createFileFixesPermissionsOnCreatedFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\createVersionNumberedFilenameKeepsInvalidAbsolutePathInFrontendAndAddsQueryString(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsNullForNotMatchingApplicationContexts(), TYPO3\CMS\Core\Tests\Unit\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcherTest\evaluateConditionCommonReturnsTrueForMatchingContexts(), TYPO3\CMS\Frontend\Tests\Unit\ContentObject\ContentObjectRendererTest\exceptionHandlerIsEnabledByDefaultInProductionContext(), TYPO3\CMS\Install\Configuration\Image\GraphicsMagickPreset\findGraphicsMagickInPaths(), TYPO3\CMS\Install\Configuration\Image\ImageMagick6Preset\findImageMagick6InPaths(), TYPO3\CMS\Core\Utility\GeneralUtility\fixPermissions(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsCorrectlySetsPermissionsRecursive(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsDoesNotSetPermissionsToNotAllowedPath(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsDefaultPermissionsToDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsDefaultPermissionsToFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsGroup(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToDirectoryWithTrailingSlash(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToHiddenDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsToHiddenFile(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\fixPermissionsSetsPermissionsWithRelativeFileReference(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrl(), TYPO3\CMS\Frontend\Tests\Unit\Typolink\AbstractTypolinkBuilderTest\forceAbsoluteUrlReturnsCorrectAbsoluteUrlWithSubfolder(), TYPO3\CMS\Core\Utility\PathUtility\getCanonicalPath(), TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\ConstantConfigurationParserTest\getConfigurationAsValuedIgnoresConstantsInConditions(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInBackendContextWithSubFolder(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest\getFilenamesFromMainDirInFrontendContext(), TYPO3\CMS\Install\FolderStructure\DefaultPermissionsCheck\getMaskStatus(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getStatus(), TYPO3\CMS\Core\Utility\CommandUtility\imageMagickCommand(), TYPO3\CMS\IndexedSearch\FileContentParser\initParser(), TYPO3\CMS\Core\Utility\PathUtility\isAbsolutePath(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\isInCurrentDomainIgnoresScheme(), TYPO3\CMS\Install\FolderStructure\AbstractNode\isWindowsOs(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\locationHeaderUrl(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepDoesNotChangePermissionsOfExistingSubDirectories(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepFixesPermissionsOfCreatedDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirDeepFixesPermissionsOnNewParentDirectory(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\mkdirSetsPermissionsOfCreatedDirectory(), TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility\removeDirectory(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\renderCheckView(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectReturnsFileFromPublicFolderWhenProjectRootIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest\retrieveFileOrFolderObjectThrowsExceptionFromPrivateExtensionResourceWhenExtensionIsNotPublic(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidPaths(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlAcceptsNotEncodedValidUrls(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInBackendContext(), TYPO3\CMS\Core\Tests\Unit\Utility\GeneralUtilityTest\sanitizeLocalUrlDeniesPlainInvalidUrlsInFrontendContext(), TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend\setCacheDirectory(), TYPO3\CMS\Core\Tests\Unit\Page\ImportMapTest\setUp(), TYPO3\CMS\Frontend\Tests\Functional\Imaging\GifBuilderTest\simulateCliRequestInComposerMode(), TYPO3\CMS\Backend\Command\ResetPasswordCommand\simulateEnvironmentForBackendEntryPoint(), TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Core\Tests\UnitDeprecated\Utility\PathUtilityPublicPathsTest\simulateWebRequest(), TYPO3\CMS\Install\Controller\EnvironmentController\systemInformationGetDataAction(), TYPO3\CMS\Core\Core\Environment\toArray(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlClearsUrl(), TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrl(), and TYPO3\CMS\FrontendLogin\Tests\Unit\Validation\RedirectUrlValidatorTest\validateRedirectUrlKeepsCleanUrlInSubdirectory().

◆ toArray()

◆ usesCgiFixPathInfo()

static TYPO3\CMS\Core\Core\Environment::usesCgiFixPathInfo ( )
static

Member Data Documentation

◆ $cli

bool TYPO3\CMS\Core\Core\Environment::$cli
staticprotected

◆ $composerMode

bool TYPO3\CMS\Core\Core\Environment::$composerMode
staticprotected

◆ $composerRootPath

string TYPO3\CMS\Core\Core\Environment::$composerRootPath
staticprotected

Definition at line 71 of file Environment.php.

Referenced by TYPO3\CMS\Core\Core\Environment\getComposerRootPath().

◆ $configPath

string TYPO3\CMS\Core\Core\Environment::$configPath
staticprotected

◆ $context

ApplicationContext TYPO3\CMS\Core\Core\Environment::$context
staticprotected

◆ $currentScript

string TYPO3\CMS\Core\Core\Environment::$currentScript
staticprotected

◆ $os

string TYPO3\CMS\Core\Core\Environment::$os
staticprotected

Definition at line 83 of file Environment.php.

Referenced by TYPO3\CMS\Core\Core\Environment\initialize().

◆ $projectPath

string TYPO3\CMS\Core\Core\Environment::$projectPath
staticprotected

◆ $publicPath

string TYPO3\CMS\Core\Core\Environment::$publicPath
staticprotected

◆ $supportedCgiServerApis

array TYPO3\CMS\Core\Core\Environment::$supportedCgiServerApis
staticprotected
Initial value:
= array(
'fpm-fcgi',
'cgi',
'isapi',
'cgi-fcgi',
'srv',
)

A list of supported CGI server APIs

Definition at line 45 of file Environment.php.

◆ $varPath

string TYPO3\CMS\Core\Core\Environment::$varPath
staticprotected