You are here

public function ProjectServiceContainer::getParameter in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::getParameter()
  2. 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services12.php \ProjectServiceContainer::getParameter()
  3. 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services10.php \ProjectServiceContainer::getParameter()
Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::getParameter()
  2. 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services12.php \ProjectServiceContainer::getParameter()
  3. 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services10.php \ProjectServiceContainer::getParameter()
2 calls to ProjectServiceContainer::getParameter()
ProjectServiceContainer::getBarService in vendor/symfony/dependency-injection/Tests/Fixtures/php/services9_compiled.php
Gets the 'bar' service.
ProjectServiceContainer::getMethodCall1Service in vendor/symfony/dependency-injection/Tests/Fixtures/php/services9_compiled.php
Gets the 'method_call1' service.

File

vendor/symfony/dependency-injection/Tests/Fixtures/php/services10.php, line 65

Class

ProjectServiceContainer
ProjectServiceContainer.

Code

public function getParameter($name) {
  $name = strtolower($name);
  if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
    throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
  }
  return $this->parameters[$name];
}