CacheInvalidationListener
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
$cacheManager
read-only
private
DoctrineCacheManager
$cacheManager
$em
read-only
private
EntityManagerInterface
$em
__construct()
public
__construct(EntityManagerInterface $em, DoctrineCacheManager $cacheManager) : mixed
Parameters
-
$em
: EntityManagerInterface
-
-
$cacheManager
: DoctrineCacheManager
-
getSubscribedEvents()
public
getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>
postPersist()
public
postPersist(PostPersistEventArgs $args) : void
Parameters
-
$args
: PostPersistEventArgs
-
postRemove()
public
postRemove(PostRemoveEventArgs $args) : void
Parameters
-
$args
: PostRemoveEventArgs
-
postUpdate()
public
postUpdate(PostUpdateEventArgs $args) : void
Parameters
-
$args
: PostUpdateEventArgs
-
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
-