[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/dependency-injection/ -> EnvVarProcessorInterface.php (source)

   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  }


Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1