diff --git a/Classes/Package.php b/Classes/Package.php new file mode 100644 index 0000000..2ec7ec6 --- /dev/null +++ b/Classes/Package.php @@ -0,0 +1,32 @@ +getSignalSlotDispatcher(); + $dispatcher->connect( + FileMonitor::class, + 'filesHaveChanged', + static function ($fileMonitorId, $changedFiles) use ($bootstrap) { + if ($fileMonitorId !== 'Flow_TranslationFiles') { + return; + } + if ($changedFiles !== []) { + $cacheManager = $bootstrap->getObjectManager()->get(CacheManager::class); + $cache = $cacheManager->getCache('DigiComp_FlowTranslationEndpoint_Responses'); + $cache->flush(); + } + } + ); + } +}