Resolver
in package
FinalYes
Table of Contents
Methods
- resolve() : string
- Resolve the nested variables in the given value.
- __construct() : void
- This class is a singleton.
- resolveVariable() : string
- Resolve a single nested variable.
Methods
resolve()
Resolve the nested variables in the given value.
public
static resolve(RepositoryInterface $repository, Value $value) : string
Replaces ${varname} patterns in the allowed positions in the variable value by an existing environment variable.
Parameters
- $repository : RepositoryInterface
- $value : Value
Return values
string__construct()
This class is a singleton.
private
__construct() : void
Tags
resolveVariable()
Resolve a single nested variable.
private
static resolveVariable(RepositoryInterface $repository, string $str) : string
Parameters
- $repository : RepositoryInterface
- $str : string