EnvironmentService implements SingletonInterface
Service for determining environment params
since v11.2, will be removed in v12.0.
only to be used within Extbase, not part of TYPO3 Core API.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $isFrontendMode : bool|null
Methods
- __construct() : mixed
- isEnvironmentInBackendMode() : bool
- Detects if backend application has been called.
- isEnvironmentInFrontendMode() : bool
- Detects if frontend application has been called.
- setFrontendMode() : void
- A helper method for tests to simulate application behavior, should only be used within TYPO3 Core
- initialize() : void
Properties
$isFrontendMode
protected
bool|null
$isFrontendMode
Methods
__construct()
public
__construct() : mixed
isEnvironmentInBackendMode()
Detects if backend application has been called.
public
isEnvironmentInBackendMode() : bool
Return values
boolisEnvironmentInFrontendMode()
Detects if frontend application has been called.
public
isEnvironmentInFrontendMode() : bool
Return values
boolsetFrontendMode()
A helper method for tests to simulate application behavior, should only be used within TYPO3 Core
public
setFrontendMode(bool $isFrontendMode) : void
Parameters
- $isFrontendMode : bool
only used for testing purposes and can be removed at any time.
initialize()
protected
initialize() : void