From 56fc5273c02971ade656991dc9173b01753a07d9 Mon Sep 17 00:00:00 2001 From: denniszon Date: Mon, 29 Jun 2020 10:58:56 +0200 Subject: [PATCH] Add twitter adapter to prevent errors on 429 status code --- src/Adapters/Twitter.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/Adapters/Twitter.php diff --git a/src/Adapters/Twitter.php b/src/Adapters/Twitter.php new file mode 100644 index 00000000..a2da7aed --- /dev/null +++ b/src/Adapters/Twitter.php @@ -0,0 +1,22 @@ +isValid([200, 429]) && $response->getUrl()->match([ + '*twitter.*', + ]); + } +}