* * 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:----wlC99fRixpN/02N+ENHK0Ybez2hTg2XExCsy2aqJ5kal/Ebbdonk126aArS4FJs4y2Tu6N98YxxkZBF2kchjyF/RDYZ3WmLc/k/04tmg+2gPwHW7+ooP9N17qjLPJHuLzeATxI77nSKXu8LEhq9bHTCLqhXJiFW1Q6pC5DEav5CXPmmu5WklUKxtSQeehytWijMKrCGfmOcD+tnzRlW0Uvebmtc6G+2RHUA6zdByq2Qw05SiQDtu2JLaruKYjWg2HSkeesPjYXmGXI4TY/UBfMp1l6WR+atjpMwzZ7UfJc4DX92f2Ubw91vadODVRElqJFw7apszgkbJhl05xjDrecEQgKEYfyXYGAWIgyI0uIKe7QU1miRJ54kcMOMMngNUIh7775Wb/TtIjZGRdnFo/Tyf5zmS9pXnnIuw01ojNxaz8YvO6PS+jwIANkjqJz6vEEwQ+WGoe4Y3dazMxzYWvv7PK+2mPw4120H3nOw7BU9s/4MK39bDEENDtP4Fehbhvg27CiKeZfSyYGgjwJ1lLXvL9Von4ajB8bt44HuqDg2zoqsCnhIDAyIQw1vTIcWKjzyxgIODgwIsTTvG4JxtOgdvRdTYfxtjiwqMI+ufiaVJrKmxSmoRCp11E+3bCym5MMh/bk8es55rSATsWBWksNowIfVreWV2kc/e5oVcKSQ=----ATTACHMENT:----OTUwOTYzNjkzOTI4NzI3NSA5NzEyOTcwNjQ3NjgzMTkxIDgwNjM0OTg5MzIxMDA5OA==