EnvVarProcessor
in package
implements
EnvVarProcessorInterface
Tags
Interfaces, Classes and Traits
- EnvVarProcessorInterface
- The EnvVarProcessorInterface is implemented by objects that manage environment-like variables.
Table of Contents
- $container : mixed
- $loadedVars : mixed
- $loaders : mixed
- __construct() : mixed
- getEnv() : mixed
- Returns the value of the given variable as managed by the current instance.
- getProvidedTypes() : array<string|int, string>
Properties
$container
private
mixed
$container
$loadedVars
private
mixed
$loadedVars
= []
$loaders
private
mixed
$loaders
Methods
__construct()
public
__construct(ContainerInterface $container[, array<string|int, EnvVarLoaderInterface> $loaders = null ]) : mixed
Parameters
- $container : ContainerInterface
- $loaders : array<string|int, EnvVarLoaderInterface> = null
Return values
mixed —getEnv()
Returns the value of the given variable as managed by the current instance.
public
getEnv(string $prefix, string $name, Closure $getEnv) : mixed
Parameters
- $prefix : string
-
The namespace of the variable; when the empty string is passed, null values should be kept as is
- $name : string
-
The name of the variable within the namespace
- $getEnv : Closure
-
A closure that allows fetching more env vars
Return values
mixed —getProvidedTypes()
public
static getProvidedTypes() : array<string|int, string>
Return values
array<string|int, string> —The PHP-types managed by getEnv(), keyed by prefixes