public function PhpDumper::dumpParameter in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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 modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php - Dumps values.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php, line 1400
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));
}