function Yaml::__construct
Parameters
int-mask-of<\Symfony\Component\Yaml\Yaml::PARSE_*> $flags:
string[]|null $groups:
Overrides Constraint::__construct
File
-
vendor/
symfony/ validator/ Constraints/ Yaml.php, line 35
Class
- Yaml
- @author Kev <https://github.com/symfonyaml>
Namespace
Symfony\Component\Validator\ConstraintsCode
public function __construct(string $message = 'This value is not valid YAML.', int $flags = 0, ?array $groups = null, mixed $payload = null) {
if (!class_exists(Parser::class)) {
throw new LogicException('The Yaml component is required to use the Yaml constraint. Try running "composer require symfony/yaml".');
}
parent::__construct(null, $groups, $payload);
}