Chris@14: Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: Chris@14: namespace Symfony\Component\DependencyInjection; Chris@14: Chris@14: use Symfony\Component\DependencyInjection\Exception\RuntimeException; Chris@14: Chris@14: /** Chris@14: * The EnvVarProcessorInterface is implemented by objects that manage environment-like variables. Chris@14: * Chris@14: * @author Nicolas Grekas Chris@14: */ Chris@14: interface EnvVarProcessorInterface Chris@14: { Chris@14: /** Chris@14: * Returns the value of the given variable as managed by the current instance. Chris@14: * Chris@14: * @param string $prefix The namespace of the variable Chris@14: * @param string $name The name of the variable within the namespace Chris@14: * @param \Closure $getEnv A closure that allows fetching more env vars Chris@14: * Chris@14: * @return mixed Chris@14: * Chris@14: * @throws RuntimeException on error Chris@14: */ Chris@14: public function getEnv($prefix, $name, \Closure $getEnv); Chris@14: Chris@14: /** Chris@14: * @return string[] The PHP-types managed by getEnv(), keyed by prefixes Chris@14: */ Chris@14: public static function getProvidedTypes(); Chris@14: }