Symfony\Component\DependencyInjection\ParameterBag\EnvPlaceholderParameterBag::getEnvPlaceholders PHP Method

getEnvPlaceholders() public method

Returns the map of env vars used in the resolved parameter values to their placeholders.
public getEnvPlaceholders ( ) : string[][]
return string[][] A map of env var names to their placeholders
    public function getEnvPlaceholders()
    {
        return $this->envPlaceholders;
    }

Usage Example

 /**
  * Merges the env placeholders of another EnvPlaceholderParameterBag.
  */
 public function mergeEnvPlaceholders(self $bag)
 {
     if ($newPlaceholders = $bag->getEnvPlaceholders()) {
         $this->envPlaceholders += $newPlaceholders;
         foreach ($newPlaceholders as $env => $placeholders) {
             $this->envPlaceholders[$env] += $placeholders;
         }
     }
 }
All Usage Examples Of Symfony\Component\DependencyInjection\ParameterBag\EnvPlaceholderParameterBag::getEnvPlaceholders