‪TYPO3CMS  9.5
TYPO3\CMS\Extbase\Service\EnvironmentService Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Service\EnvironmentService:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

bool isEnvironmentInFrontendMode ()
 
bool isEnvironmentInBackendMode ()
 
bool isEnvironmentInCliMode ()
 
string getServerRequestMethod ()
 

Detailed Description

Service for determining environment params

only to be used within Extbase, not part of TYPO3 Core API.

Definition at line 23 of file EnvironmentService.php.

Member Function Documentation

◆ getServerRequestMethod()

string TYPO3\CMS\Extbase\Service\EnvironmentService::getServerRequestMethod ( )
Returns
‪string

Definition at line 61 of file EnvironmentService.php.

◆ isEnvironmentInBackendMode()

bool TYPO3\CMS\Extbase\Service\EnvironmentService::isEnvironmentInBackendMode ( )

Detects if TYPO3_MODE is defined and its value is "BE"

Returns
‪bool

Definition at line 40 of file EnvironmentService.php.

◆ isEnvironmentInCliMode()

bool TYPO3\CMS\Extbase\Service\EnvironmentService::isEnvironmentInCliMode ( )

Detects if we are running a script from the command line.

Returns
‪bool
Deprecated:
‪since TYPO3 v9.4 and will be removed in TYPO3 v10.0
See also
Environment::isCli()

Definition at line 52 of file EnvironmentService.php.

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

◆ isEnvironmentInFrontendMode()

bool TYPO3\CMS\Extbase\Service\EnvironmentService::isEnvironmentInFrontendMode ( )

Detects if TYPO3_MODE is defined and its value is "FE"

Returns
‪bool

Definition at line 30 of file EnvironmentService.php.