Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface::get PHP Méthode

get() public méthode

Gets a service container parameter.
public get ( string $name ) : mixed
$name string The parameter name
Résultat mixed The parameter value
    function get($name);

Usage Example

 public function fetchConfigurationValue(string $configPath)
 {
     if (null === $this->parameterBag) {
         throw new \LogicException('Parameter bag should be injected with setter method first');
     }
     return $this->parameterBag->get($configPath);
 }
All Usage Examples Of Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface::get