api/symfony/Component/DependencyInjection/EnvVarProcessorInterface.yaml

54 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: EnvVarProcessorInterface
class_comment: null
dependencies:
- name: RuntimeException
type: class
source: Symfony\Component\DependencyInjection\Exception\RuntimeException
properties: []
methods:
- name: getEnv
visibility: public
parameters:
- name: prefix
- name: name
- name: getEnv
comment: '# * The EnvVarProcessorInterface is implemented by objects that manage
environment-like variables.
# *
# * @author Nicolas Grekas <p@tchwork.com>
# */
# 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'
- name: getProvidedTypes
visibility: public
parameters: []
comment: '# * @return array<string, string> The PHP-types managed by getEnv(), keyed
by prefixes'
traits:
- Symfony\Component\DependencyInjection\Exception\RuntimeException
interfaces: []