fixed namespace of PPConfigurationException

the PPConfigurationException class is not in the used \PayPal\Auth namespace
This commit is contained in:
Moritz Spindelhirn
2013-04-29 19:05:14 +03:00
parent 4ee4d73f89
commit 71bd99c0e6

View File

@@ -6,9 +6,9 @@ namespace PayPal\Auth;
* Oauth Token credential * Oauth Token credential
* *
*/ */
use PayPal\Rest\RestHandler; use PayPal\Rest\RestHandler;
use PayPal\Common\UserAgent; use PayPal\Common\UserAgent;
class OAuthTokenCredential { class OAuthTokenCredential {
@@ -124,7 +124,7 @@ class OAuthTokenCredential {
throw new \PPConfigurationException('The mode config parameter must be set to either sandbox/live'); throw new \PPConfigurationException('The mode config parameter must be set to either sandbox/live');
} }
} else { } else {
throw new PPConfigurationException('You must set one of service.endpoint or mode parameters in your configuration'); throw new \PPConfigurationException('You must set one of service.endpoint or mode parameters in your configuration');
} }
$baseEndpoint = rtrim(trim($baseEndpoint), '/'); $baseEndpoint = rtrim(trim($baseEndpoint), '/');