wellKnownFileManager = $wellKnownFileManager; $this->configWriter = $configWriter; $this->dateTime = $dateTime; $this->cacheManager = $cacheManager; $this->logger = $logger; } /** * @inheirtDoc */ public function apply(): CreateWellKnownFIle { $date = $this->dateTime->gmtDate('Y-m-d'); $this->configWriter->save(Config::XML_PATH_WELL_KNOWN_LAST_UPDATE_DATE, $date); $this->cacheManager->clean(['config']); try { $this->wellKnownFileManager->create(); } catch (\Throwable $e) { $this->logger->error('[Plumrocket_GlobalPrivacyControl] Failed to update .well-known file: ' . $e->getMessage(), ['exception' => $e]); } return $this; } /** * @inheirtDoc */ public static function getDependencies(): array { return []; } /** * @inheirtDoc */ public function getAliases(): array { return []; } }