EnvironmentService implements SingletonInterface

Service for determining environment params

Deprecated

since v11.2, will be removed in v12.0.

Internal

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

isEnvironmentInBackendMode()

Detects if backend application has been called.

public isEnvironmentInBackendMode() : bool
Return values
bool

isEnvironmentInFrontendMode()

Detects if frontend application has been called.

public isEnvironmentInFrontendMode() : bool
Return values
bool

setFrontendMode()

A helper method for tests to simulate application behavior, should only be used within TYPO3 Core

public setFrontendMode(bool $isFrontendMode) : void
Parameters
$isFrontendMode : bool
Internal

only used for testing purposes and can be removed at any time.


        
On this page

Search results