function Config::process
Replaces {$refs} inside a config string
Parameters
string|mixed $value a config string that can contain {$refs-to-other-config}:
int $flags Options (see class constants):
Return value
string|mixed
1 call to Config::process()
- Config::get in vendor/
composer/ composer/ src/ Composer/ Config.php - Returns a setting
File
-
vendor/
composer/ composer/ src/ Composer/ Config.php, line 539
Class
- Config
- @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
ComposerCode
private function process($value, int $flags) {
if (!is_string($value)) {
return $value;
}
return Preg::replaceCallback('#\\{\\$(.+)\\}#', function ($match) use ($flags) {
return $this->get($match[1], $flags);
}, $value);
}