EnvironmentService

class \TYPO3\CMS\Extbase\Service\EnvironmentService

Implements
SingletonInterface

Service for determining environment params

Deprecated

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

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
On this page