public function PhpDumper::dumpParameter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Dumper/PhpDumper.php \Symfony\Component\DependencyInjection\Dumper\PhpDumper::dumpParameter()
Dumps a parameter.
Parameters
string $name:
Return value
string
1 call to PhpDumper::dumpParameter()
- PhpDumper::dumpValue in vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php - Dumps values.
File
- vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php, line 1404
Class
- PhpDumper
- PhpDumper dumps a service container as a PHP class.
Namespace
Symfony\Component\DependencyInjection\DumperCode
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));
}