CoolCMS API

CacheInvalidationListener
in package
implements EventSubscriber

Table of Contents

Interfaces

EventSubscriber

Properties

$cacheManager  : DoctrineCacheManager
$em  : EntityManagerInterface

Methods

__construct()  : mixed
getSubscribedEvents()  : array<string|int, mixed>
postPersist()  : void
postRemove()  : void
postUpdate()  : void
getParentEntity()  : object|null
invalidateCacheForEntity()  : void
isTranslationEntity()  : bool

Properties

Methods

getSubscribedEvents()

public getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>

postPersist()

public postPersist(PostPersistEventArgs $args) : void
Parameters
$args : PostPersistEventArgs

getParentEntity()

private getParentEntity(object $translation) : object|null
Parameters
$translation : object
Return values
object|null

invalidateCacheForEntity()

private invalidateCacheForEntity(object $entity) : void
Parameters
$entity : object

isTranslationEntity()

private isTranslationEntity(object $entity) : bool
Parameters
$entity : object
Return values
bool
On this page

Search results