You are here

public function ProjectServiceContainer::getParameter in Service Container 7

Same name in this branch
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::getParameter()
  2. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services12.php \ProjectServiceContainer::getParameter()
  3. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php \ProjectServiceContainer::getParameter()
Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::getParameter()
  2. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services12.php \ProjectServiceContainer::getParameter()
  3. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php \ProjectServiceContainer::getParameter()
2 calls to ProjectServiceContainer::getParameter()
ProjectServiceContainer::getBarService in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php
Gets the 'bar' service.
ProjectServiceContainer::getMethodCall1Service in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php
Gets the 'method_call1' service.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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];
}