Loading lib/Command/UpdateBlacklistedDomains.php +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ class UpdateBlacklistedDomains extends Command { $this->userService->updateBlacklistedDomains(); $output->writeln('Updated blacklisted domains for creation.'); } catch (\Throwable $th) { $output->writeln('Error while updating blacklisted domains. Error: '.$th->getMessage()); $output->writeln('Error while updating blacklisted domains.'); } return 1; } Loading lib/Service/UserService.php +2 −11 Original line number Diff line number Diff line Loading @@ -597,17 +597,8 @@ class UserService { */ public function updateBlacklistedDomains(): void { $blacklisted_domain_url = self::BLACKLISTED_DOMAINS_URL; try { $json_data = file_get_contents($blacklisted_domain_url); if ($json_data === false) { $this->logger->error("Failed to fetch data from URL: $blacklisted_domain_url"); throw new \RuntimeException("Failed to fetch data from URL: $blacklisted_domain_url"); } $this->setBlacklistedDomainsData($json_data); } catch (Exception $e) { // Log any exceptions that occur during the process $this->logger->logException($e, ['message' => 'Failed to update blacklisted domains.']); } } /** Loading Loading
lib/Command/UpdateBlacklistedDomains.php +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ class UpdateBlacklistedDomains extends Command { $this->userService->updateBlacklistedDomains(); $output->writeln('Updated blacklisted domains for creation.'); } catch (\Throwable $th) { $output->writeln('Error while updating blacklisted domains. Error: '.$th->getMessage()); $output->writeln('Error while updating blacklisted domains.'); } return 1; } Loading
lib/Service/UserService.php +2 −11 Original line number Diff line number Diff line Loading @@ -597,17 +597,8 @@ class UserService { */ public function updateBlacklistedDomains(): void { $blacklisted_domain_url = self::BLACKLISTED_DOMAINS_URL; try { $json_data = file_get_contents($blacklisted_domain_url); if ($json_data === false) { $this->logger->error("Failed to fetch data from URL: $blacklisted_domain_url"); throw new \RuntimeException("Failed to fetch data from URL: $blacklisted_domain_url"); } $this->setBlacklistedDomainsData($json_data); } catch (Exception $e) { // Log any exceptions that occur during the process $this->logger->logException($e, ['message' => 'Failed to update blacklisted domains.']); } } /** Loading