function EnvVarProcessorInterface::getEnv
Returns the value of the given variable as managed by the current instance.
Parameters
string $prefix The namespace of the variable; when the empty string is passed, null values should be kept as is:
string $name The name of the variable within the namespace:
\Closure(string): mixed $getEnv A closure that allows fetching more env vars:
Throws
RuntimeException on error
1 method overrides EnvVarProcessorInterface::getEnv()
- EnvVarProcessor::getEnv in vendor/
symfony/ dependency-injection/ EnvVarProcessor.php - Returns the value of the given variable as managed by the current instance.
File
-
vendor/
symfony/ dependency-injection/ EnvVarProcessorInterface.php, line 32
Class
- EnvVarProcessorInterface
- The EnvVarProcessorInterface is implemented by objects that manage environment-like variables.
Namespace
Symfony\Component\DependencyInjectionCode
public function getEnv(string $prefix, string $name, \Closure $getEnv) : mixed;