Reference
C
Class

ApiPlatform\Doctrine\EventListener\PurgeHttpCacheListener

Purges responses containing modified entities from the proxy cache.

class ApiPlatform\Doctrine\EventListener\PurgeHttpCacheListener
{
    public __construct(ApiPlatform\HttpCache\PurgerInterface $purger, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)
    public preUpdate(Doctrine\ORM\Event\PreUpdateEventArgs $eventArgs): null
    public onFlush(Doctrine\ORM\Event\OnFlushEventArgs $eventArgs): null
    public postFlush(): null
}
class ApiPlatform\Doctrine\EventListener\PurgeHttpCacheListener
{
    public __construct(ApiPlatform\HttpCache\PurgerInterface $purger, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)
    public preUpdate(Doctrine\ORM\Event\PreUpdateEventArgs $eventArgs): null
    public onFlush(Doctrine\ORM\Event\OnFlushEventArgs $eventArgs): null
    public postFlush(): null
}

Methods

__construct

public __construct(ApiPlatform\HttpCache\PurgerInterface $purger, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)
public __construct(ApiPlatform\HttpCache\PurgerInterface $purger, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)

Parameters

purgerApiPlatform\HttpCache\PurgerInterface
iriConverterApiPlatform\Api\IriConverterInterface
resourceClassResolverApiPlatform\Api\ResourceClassResolverInterface
propertyAccessorSymfony\Component\PropertyAccess\PropertyAccessorInterface

preUpdate

Collects tags from the previous and the current version of the updated entities to purge related documents.

public preUpdate(Doctrine\ORM\Event\PreUpdateEventArgs $eventArgs): null
public preUpdate(Doctrine\ORM\Event\PreUpdateEventArgs $eventArgs): null

Parameters

eventArgsDoctrine\ORM\Event\PreUpdateEventArgs

Returns

null

onFlush

Collects tags from inserted and deleted entities, including relations.

public onFlush(Doctrine\ORM\Event\OnFlushEventArgs $eventArgs): null
public onFlush(Doctrine\ORM\Event\OnFlushEventArgs $eventArgs): null

Parameters

eventArgsDoctrine\ORM\Event\OnFlushEventArgs

Returns

null

postFlush

Purges tags collected during this request, and clears the tag list.

public postFlush(): null
public postFlush(): null

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop