TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
EnvironmentService Class Reference
Inheritance diagram for EnvironmentService:
SingletonInterface

Public Member Functions

 isEnvironmentInFrontendMode ()
 
 isEnvironmentInBackendMode ()
 
 isEnvironmentInCliMode ()
 
 getServerRequestMethod ()
 

Detailed Description

Service for determining environment params

Definition at line 20 of file EnvironmentService.php.

Member Function Documentation

getServerRequestMethod ( )
Returns
string

Definition at line 55 of file EnvironmentService.php.

isEnvironmentInBackendMode ( )

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

Returns
bool

Definition at line 37 of file EnvironmentService.php.

isEnvironmentInCliMode ( )

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

Returns
bool

Definition at line 47 of file EnvironmentService.php.

isEnvironmentInFrontendMode ( )

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

Returns
bool

Definition at line 27 of file EnvironmentService.php.