EnvVarProcessor implements EnvVarProcessorInterface

Internal
Attributes
#[AutoconfigureTag]
'container.env_var_processor'

Table of Contents

Interfaces

EnvVarProcessorInterface

Methods

getEnv()  : mixed
getProvidedTypes()  : array<string|int, 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() : array<string|int, string>
Return values
array<string|int, string>

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


        
On this page

Search results