comparison vendor/symfony/dependency-injection/EnvVarProcessorInterface.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\DependencyInjection;
13
14 use Symfony\Component\DependencyInjection\Exception\RuntimeException;
15
16 /**
17 * The EnvVarProcessorInterface is implemented by objects that manage environment-like variables.
18 *
19 * @author Nicolas Grekas <p@tchwork.com>
20 */
21 interface EnvVarProcessorInterface
22 {
23 /**
24 * Returns the value of the given variable as managed by the current instance.
25 *
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
29 *
30 * @return mixed
31 *
32 * @throws RuntimeException on error
33 */
34 public function getEnv($prefix, $name, \Closure $getEnv);
35
36 /**
37 * @return string[] The PHP-types managed by getEnv(), keyed by prefixes
38 */
39 public static function getProvidedTypes();
40 }