public function PhpDumper::dumpParameter

Dumps a parameter

Parameters

string $name:

Return value

string

1 call to PhpDumper::dumpParameter()
PhpDumper::dumpValue in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Dumps values.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php, line 1071

Class

PhpDumper
PhpDumper dumps a service container as a PHP class.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

public function dumpParameter($name) {
  if ($this->container
    ->isFrozen() && $this->container
    ->hasParameter($name)) {
    return $this
      ->dumpValue($this->container
      ->getParameter($name), false);
  }
  return sprintf("\$this->getParameter('%s')", strtolower($name));
}