From 70d47d8b2f0b62537915865d933f1e4ab3ec5a27 Mon Sep 17 00:00:00 2001 From: Jonas Siewertsen Date: Sun, 26 Apr 2020 19:47:07 +0200 Subject: [PATCH] Throw an exception if the OhDear credentials have not been provided --- .../OhDearCredentialsNotProvidedException.php | 10 ++++++++++ src/OhDear.php | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/Exceptions/OhDearCredentialsNotProvidedException.php diff --git a/src/Exceptions/OhDearCredentialsNotProvidedException.php b/src/Exceptions/OhDearCredentialsNotProvidedException.php new file mode 100644 index 0000000..136679e --- /dev/null +++ b/src/Exceptions/OhDearCredentialsNotProvidedException.php @@ -0,0 +1,10 @@ +ohDear = new OhDearSDK(config('oh-dear.api_key')); $this->site = $this->ohDear->site(config('oh-dear.site_id'));