function ParametersConfigurator::set
Return value
$this
1 call to ParametersConfigurator::set()
- ParametersConfigurator::__invoke in vendor/
symfony/ dependency-injection/ Loader/ Configurator/ ParametersConfigurator.php
File
-
vendor/
symfony/ dependency-injection/ Loader/ Configurator/ ParametersConfigurator.php, line 33
Class
- ParametersConfigurator
- @author Nicolas Grekas <p@tchwork.com>
Namespace
Symfony\Component\DependencyInjection\Loader\ConfiguratorCode
public final function set(string $name, mixed $value) : static {
if ($value instanceof Expression) {
throw new InvalidArgumentException(\sprintf('Using an expression in parameter "%s" is not allowed.', $name));
}
$this->container
->setParameter($name, static::processValue($value, true));
return $this;
}