interface EnvVarProcessorInterface
The EnvVarProcessorInterface is implemented by objects that manage environment-like variables.
@author Nicolas Grekas <p@tchwork.com>
Hierarchy
- interface \Symfony\Component\DependencyInjection\EnvVarProcessorInterface
Expanded class hierarchy of EnvVarProcessorInterface
All classes that implement EnvVarProcessorInterface
1 file declares its use of EnvVarProcessorInterface
- RegisterEnvVarProcessorsPass.php in vendor/
symfony/ dependency-injection/ Compiler/ RegisterEnvVarProcessorsPass.php
File
-
vendor/
symfony/ dependency-injection/ EnvVarProcessorInterface.php, line 21
Namespace
Symfony\Component\DependencyInjectionView source
interface EnvVarProcessorInterface {
/**
* Returns the value of the given variable as managed by the current instance.
*
* @param string $prefix The namespace of the variable; when the empty string is passed, null values should be kept as is
* @param string $name The name of the variable within the namespace
* @param \Closure(string): mixed $getEnv A closure that allows fetching more env vars
*
* @throws RuntimeException on error
*/
public function getEnv(string $prefix, string $name, \Closure $getEnv) : mixed;
/**
* @return array<string, string> The PHP-types managed by getEnv(), keyed by prefixes
*/
public static function getProvidedTypes() : array;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
EnvVarProcessorInterface::getEnv | public | function | Returns the value of the given variable as managed by the current instance. | 1 |
EnvVarProcessorInterface::getProvidedTypes | public static | function | 1 |