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(); } } ); } }