Validates an item using the Symfony validator component.
class ApiPlatform\Symfony\Validator\Validator implements ApiPlatform\Validator\ValidatorInterface
{
public __construct(Symfony\Component\Validator\Validator\ValidatorInterface $validator, null|Psr\Container\ContainerInterface $container, null|bool $legacyValidationException)
public validate(object $data, array $context): null
}
public __construct(Symfony\Component\Validator\Validator\ValidatorInterface $validator, null|Psr\Container\ContainerInterface $container, null|bool $legacyValidationException)
validator | Symfony\Component\Validator\Validator\ValidatorInterface | |
container | Psr\Container\ContainerInterface | |
legacyValidationException | bool |
Validates an item.
public validate(object $data, array $context): null
data | object | |
context | array |
null
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more