Guides
Tutorials
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
}
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)
purger | ApiPlatform\HttpCache\PurgerInterface | |
iriConverter | ApiPlatform\Api\IriConverterInterface | |
resourceClassResolver | ApiPlatform\Api\ResourceClassResolverInterface | |
propertyAccessor | Symfony\Component\PropertyAccess\PropertyAccessorInterface |
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
eventArgs | Doctrine\ORM\Event\PreUpdateEventArgs |
null
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
eventArgs | Doctrine\ORM\Event\OnFlushEventArgs |
null
Purges tags collected during this request, and clears the tag list.
public postFlush(): null
public postFlush(): null
null