Optimization of resolveEnvPlaceholders
This commit is contained in:
parent
1e76053f0c
commit
f73b5aa479
|
@ -1413,7 +1413,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||
return $result;
|
||||
}
|
||||
|
||||
if (!\is_string($value) || 38 > \strlen($value)) {
|
||||
if (!\is_string($value) || 38 > \strlen($value) || !preg_match('/env[_(]/i', $value)) {
|
||||
return $value;
|
||||
}
|
||||
$envPlaceholders = $bag instanceof EnvPlaceholderParameterBag ? $bag->getEnvPlaceholders() : $this->envPlaceholders;
|
||||
|
|
Reference in New Issue