public function postPersist(LifecycleEventArgs $eventArgs) { if ($eventArgs->getEntity() instanceof Account) { $this->flushConfigurationCache(); } }