Loading src/RateBotDetector.php +3 −1 Changes for src/RateBotDetector.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Drupal\rate; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; use Drupal\Core\Messenger\MessengerTrait; use Drupal\Core\StringTranslation\StringTranslationTrait; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; Loading @@ -14,6 +15,7 @@ use Symfony\Component\HttpFoundation\RequestStack; */ class RateBotDetector { use StringTranslationTrait; use MessengerTrait; /** * Client IP. Loading Loading @@ -167,7 +169,7 @@ class RateBotDetector { } } catch (RequestException $e) { drupal_set_message($this->t('An error occurred contacting BotScout.'), 'warning'); $this->messenger()->addMessage($this->t('An error occurred contacting BotScout.'), 'warning'); watchdog_exception('rate', $e); } } Loading Loading
src/RateBotDetector.php +3 −1 Changes for src/RateBotDetector.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Drupal\rate; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; use Drupal\Core\Messenger\MessengerTrait; use Drupal\Core\StringTranslation\StringTranslationTrait; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; Loading @@ -14,6 +15,7 @@ use Symfony\Component\HttpFoundation\RequestStack; */ class RateBotDetector { use StringTranslationTrait; use MessengerTrait; /** * Client IP. Loading Loading @@ -167,7 +169,7 @@ class RateBotDetector { } } catch (RequestException $e) { drupal_set_message($this->t('An error occurred contacting BotScout.'), 'warning'); $this->messenger()->addMessage($this->t('An error occurred contacting BotScout.'), 'warning'); watchdog_exception('rate', $e); } } Loading