function ContainerBuilder::parameterCannotBeEmpty
File
-
vendor/
symfony/ dependency-injection/ ContainerBuilder.php, line 771
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjectionCode
public function parameterCannotBeEmpty(string $name, string $message) : void {
if (!$this->parameterBag instanceof ParameterBag) {
throw new BadMethodCallException(\sprintf('The parameter bag must be an instance of "%s" to call "%s()".', ParameterBag::class, __METHOD__));
}
$this->parameterBag
->cannotBeEmpty($name, $message);
}