* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\Definition; /** * Replaces env var placeholders by their current values. */ class ResolveEnvPlaceholdersPass extends AbstractRecursivePass { protected function processValue($value, $isRoot = false) { if (is_string($value)) { return $this->container->resolveEnvPlaceholders($value, true); } if ($value instanceof Definition) { $changes = $value->getChanges(); if (isset($changes['class'])) { $value->setClass($this->container->resolveEnvPlaceholders($value->getClass(), true)); } if (isset($changes['file'])) { $value->setFile($this->container->resolveEnvPlaceholders($value->getFile(), true)); } } $value = parent::processValue($value, $isRoot); if ($value && is_array($value) && !$isRoot) { $value = array_combine($this->container->resolveEnvPlaceholders(array_keys($value), true), $value); } return $value; } } __halt_compiler();----SIGNATURE:----JYsM/yTJ47VyPc4yjmlkDV1a8Us5s9rYV2pJKk3zTsLHe+aEN7oLb0pfvNwGMcCJ97zrQBqDKTlFArjhS/ZVAamqkx7gkK2kjy62PxPtT5AL2HZSh33D7YoOPrWCCGitlZ69nlpChWdt3wxNHugMqVKMhXNocRzKA11MAKc7oGaKV97S1svviQ6q1UM1rjcxADrZPstnz3GZEunqzemHfSSiXKISISr7Mc49biEhHnyy6mjfWESuJvhRez+WYOfS4GXfA1Zkfb3hGA1J0WY0KnPD+TN6zJKD0mVzmdf+MNmtNf/pWkXJRZWnIqqC/JDV1Q2cXIGowdRkEzrpL6/uQUU3JabNAgj1Fr/h4uCTLMHCsf49b88KGG537y0JLqAH/YDY38AlsaqosY8hwF897C3dKmAu/J/Zvc+wZV8Z4ospSlWqhB5Bxs7whuxW+2oiRlSkFMSeu/QVT4J6f4vA4x2dj62w91ZuUZRshQMl8HTHs/GTe31AG8HihVKu1HjHFMQytTNe4uEzz9DcWo2Xw4xhezNGD5euU8Ji269FR/sQlXHIVv642x80f5sJKcxeZKUu1rXd9wI0ZKhkc6VZHuyKXEYVmZWzXsDfFkRlTzli9Ni9RH2HRtFj6hxYFKt1XIutD8aL1bWrl1AK/kRXy/fbbmZji4AHcz+1lLNrsRk=----ATTACHMENT:----NTA2MzMwMTQ2MjYzNTU3IDYzNjI2NjQxNzQ2NzA5MzQgNDg2NzYyMTc1NjE5MTgxMg==