EnvVarProcessor

readonly class \TYPO3\CMS\Core\DependencyInjection\EnvVarProcessor

Implements
EnvVarProcessorInterface

Attributes

#[AutoconfigureTag]
'container.env_var_processor'

Table of Contents

Interfaces

EnvVarProcessorInterface

Methods

getEnv()  : mixed
getProvidedTypes()  : string[]

Methods

getEnv()

public getEnv(string $prefix, string $name, Closure $getEnv) : mixed

Parameters

$prefix : string

The namespace of the variable

$name : string

The name of the variable within the namespace

$getEnv : Closure

A closure that allows fetching more env vars

Tags

throws
RuntimeException

on error

getProvidedTypes()

public static getProvidedTypes() : string[]

Return values

string[] —

The PHP-types managed by getEnv(), keyed by prefixes

On this page