Reference
C
Class

ApiPlatform\Symfony\EventListener\ValidateListener

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
}

Methods

__construct

public __construct(ApiPlatform\Validator\ValidatorInterface $validator, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public __construct(ApiPlatform\Validator\ValidatorInterface $validator, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)

Parameters

validatorApiPlatform\Validator\ValidatorInterface
resourceMetadataCollectionFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface

onKernelView

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

Parameters

eventSymfony\Component\HttpKernel\Event\ViewEvent

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop