Guides
Tutorials
Validates data.
class ApiPlatform\Symfony\EventListener\ValidateListener
{
public __construct(ApiPlatform\Validator\ValidatorInterface $validator, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}
class ApiPlatform\Symfony\EventListener\ValidateListener
{
public __construct(ApiPlatform\Validator\ValidatorInterface $validator, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}
public __construct(ApiPlatform\Validator\ValidatorInterface $validator, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public __construct(ApiPlatform\Validator\ValidatorInterface $validator, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
validator | 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
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
event | Symfony\Component\HttpKernel\Event\ViewEvent |
null