From 72713308c4caa09ca28f520a598811a91bf75fea Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 26 Apr 2018 11:18:59 +0200 Subject: [PATCH] app/library/OAuth/Adapter/League.php: make sure the exception class is found. --- app/library/OAuth/Adapter/League.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/library/OAuth/Adapter/League.php b/app/library/OAuth/Adapter/League.php index 3d04fdf..878b6e6 100644 --- a/app/library/OAuth/Adapter/League.php +++ b/app/library/OAuth/Adapter/League.php @@ -37,7 +37,7 @@ class League implements AdapterInterface public function __construct($provider_name, $options) { if (!array_key_exists($provider_name, $this->_providerClasses)) { - throw new Exception("Provider '{$provider_name}' is not supported."); + throw new \Exception("Provider '{$provider_name}' is not supported."); } $className = $this->_providerClasses[$provider_name]; @@ -45,7 +45,7 @@ class League implements AdapterInterface if (!($provider instanceof AbstractProvider)) { // TODO: Throw a better exception class :) - throw new Exception("Provider object must be an instance of League\\OAuth2\\Client\\Provider\\AbstractProvider"); + throw new \Exception("Provider object must be an instance of League\\OAuth2\\Client\\Provider\\AbstractProvider"); } $this->_provider = $provider;