4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection;
14 use Symfony\Component\DependencyInjection\Exception\RuntimeException;
17 * The EnvVarProcessorInterface is implemented by objects that manage environment-like variables.
19 * @author Nicolas Grekas <p@tchwork.com>
21 interface EnvVarProcessorInterface
24 * Returns the value of the given variable as managed by the current instance.
26 * @param string $prefix The namespace of the variable
27 * @param string $name The name of the variable within the namespace
28 * @param \Closure $getEnv A closure that allows fetching more env vars
32 * @throws RuntimeException on error
34 public function getEnv($prefix, $name, \Closure $getEnv);
37 * @return string[] The PHP-types managed by getEnv(), keyed by prefixes
39 public static function getProvidedTypes();