Validates data.
class ApiPlatform\Symfony\EventListener\ValidateListener
{
public __construct(|`<a href="/docs/main/references/Validator/ValidatorInterface">ApiPlatform\Validator\ValidatorInterface</a>` $validator, `<a href="/docs/main/references/Metadata/Resource/Factory/ResourceMetadataCollectionFactoryInterface">ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}
public __construct(|`<a href="/docs/main/references/Validator/ValidatorInterface">ApiPlatform\Validator\ValidatorInterface</a>` $validator, `<a href="/docs/main/references/Metadata/Resource/Factory/ResourceMetadataCollectionFactoryInterface">ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
validator | `ApiPlatform\State\ProviderInterface` `ApiPlatform\Validator\ValidatorInterface` | |
resourceMetadataCollectionFactory | `ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface` |
Validates data returned by the controller if applicable.
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
event | Symfony\Component\HttpKernel\Event\ViewEvent |
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