From 850473ce40c48623c6c3566306ce6db177cfe958 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 8 May 2013 11:06:09 -0700 Subject: [PATCH] Renamed namespace to League\OAuth2\ --- composer.json | 2 +- src/{ => League}/OAuth2/AuthServer.php | 14 +++++++------- .../OAuth2/Exception/ClientException.php | 2 +- .../Exception/InvalidAccessTokenException.php | 2 +- .../Exception/InvalidGrantTypeException.php | 2 +- .../OAuth2/Exception/OAuth2Exception.php | 2 +- src/{ => League}/OAuth2/Grant/AuthCode.php | 16 ++++++++-------- .../OAuth2/Grant/ClientCredentials.php | 16 ++++++++-------- .../OAuth2/Grant/GrantTypeInterface.php | 16 ++++++++-------- src/{ => League}/OAuth2/Grant/Implicit.php | 16 ++++++++-------- src/{ => League}/OAuth2/Grant/Password.php | 16 ++++++++-------- src/{ => League}/OAuth2/Grant/RefreshToken.php | 16 ++++++++-------- src/{ => League}/OAuth2/ResourceServer.php | 8 ++++---- .../OAuth2/Storage/ClientInterface.php | 2 +- src/{ => League}/OAuth2/Storage/PDO/Client.php | 4 ++-- src/{ => League}/OAuth2/Storage/PDO/Db.php | 2 +- src/{ => League}/OAuth2/Storage/PDO/Scope.php | 4 ++-- src/{ => League}/OAuth2/Storage/PDO/Session.php | 4 ++-- .../OAuth2/Storage/ScopeInterface.php | 2 +- .../OAuth2/Storage/SessionInterface.php | 2 +- src/{ => League}/OAuth2/Util/RedirectUri.php | 2 +- src/{ => League}/OAuth2/Util/Request.php | 2 +- .../OAuth2/Util/RequestInterface.php | 2 +- src/{ => League}/OAuth2/Util/SecureKey.php | 2 +- 24 files changed, 78 insertions(+), 78 deletions(-) rename src/{ => League}/OAuth2/AuthServer.php (98%) rename src/{ => League}/OAuth2/Exception/ClientException.php (91%) rename src/{ => League}/OAuth2/Exception/InvalidAccessTokenException.php (91%) rename src/{ => League}/OAuth2/Exception/InvalidGrantTypeException.php (91%) rename src/{ => League}/OAuth2/Exception/OAuth2Exception.php (90%) rename src/{ => League}/OAuth2/Grant/AuthCode.php (97%) rename src/{ => League}/OAuth2/Grant/ClientCredentials.php (94%) rename src/{ => League}/OAuth2/Grant/GrantTypeInterface.php (85%) rename src/{ => League}/OAuth2/Grant/Implicit.php (89%) rename src/{ => League}/OAuth2/Grant/Password.php (96%) rename src/{ => League}/OAuth2/Grant/RefreshToken.php (94%) rename src/{ => League}/OAuth2/ResourceServer.php (97%) rename src/{ => League}/OAuth2/Storage/ClientInterface.php (98%) rename src/{ => League}/OAuth2/Storage/PDO/Client.php (96%) rename src/{ => League}/OAuth2/Storage/PDO/Db.php (80%) rename src/{ => League}/OAuth2/Storage/PDO/Scope.php (88%) rename src/{ => League}/OAuth2/Storage/PDO/Session.php (99%) rename src/{ => League}/OAuth2/Storage/ScopeInterface.php (96%) rename src/{ => League}/OAuth2/Storage/SessionInterface.php (99%) rename src/{ => League}/OAuth2/Util/RedirectUri.php (96%) rename src/{ => League}/OAuth2/Util/Request.php (98%) rename src/{ => League}/OAuth2/Util/RequestInterface.php (94%) rename src/{ => League}/OAuth2/Util/SecureKey.php (97%) diff --git a/composer.json b/composer.json index f3354f09..ae84636a 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ }, "autoload": { "psr-0": { - "OAuth2": "src/" + "League\\OAuth2": "src/" } }, "suggest": {} diff --git a/src/OAuth2/AuthServer.php b/src/League/OAuth2/AuthServer.php similarity index 98% rename from src/OAuth2/AuthServer.php rename to src/League/OAuth2/AuthServer.php index fae8e9d0..403f8a7c 100644 --- a/src/OAuth2/AuthServer.php +++ b/src/League/OAuth2/AuthServer.php @@ -9,14 +9,14 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2; +namespace League\OAuth2; -use OAuth2\Util\Request; -use OAuth2\Util\SecureKey; -use OAuth2\Storage\SessionInterface; -use OAuth2\Storage\ClientInterface; -use OAuth2\Storage\ScopeInterface; -use OAuth2\Grant\GrantTypeInterface; +use League\OAuth2\Util\Request; +use League\OAuth2\Util\SecureKey; +use League\OAuth2\Storage\SessionInterface; +use League\OAuth2\Storage\ClientInterface; +use League\OAuth2\Storage\ScopeInterface; +use League\OAuth2\Grant\GrantTypeInterface; /** * OAuth 2.0 authorization server class diff --git a/src/OAuth2/Exception/ClientException.php b/src/League/OAuth2/Exception/ClientException.php similarity index 91% rename from src/OAuth2/Exception/ClientException.php rename to src/League/OAuth2/Exception/ClientException.php index cfd8090a..96d0fa64 100644 --- a/src/OAuth2/Exception/ClientException.php +++ b/src/League/OAuth2/Exception/ClientException.php @@ -9,7 +9,7 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Exception; +namespace League\OAuth2\Exception; /** * ClientException Exception diff --git a/src/OAuth2/Exception/InvalidAccessTokenException.php b/src/League/OAuth2/Exception/InvalidAccessTokenException.php similarity index 91% rename from src/OAuth2/Exception/InvalidAccessTokenException.php rename to src/League/OAuth2/Exception/InvalidAccessTokenException.php index fa598bd6..809adef0 100644 --- a/src/OAuth2/Exception/InvalidAccessTokenException.php +++ b/src/League/OAuth2/Exception/InvalidAccessTokenException.php @@ -9,7 +9,7 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Exception; +namespace League\OAuth2\Exception; /** * InvalidAccessToken Exception diff --git a/src/OAuth2/Exception/InvalidGrantTypeException.php b/src/League/OAuth2/Exception/InvalidGrantTypeException.php similarity index 91% rename from src/OAuth2/Exception/InvalidGrantTypeException.php rename to src/League/OAuth2/Exception/InvalidGrantTypeException.php index 4cf5c99f..ec7909f2 100644 --- a/src/OAuth2/Exception/InvalidGrantTypeException.php +++ b/src/League/OAuth2/Exception/InvalidGrantTypeException.php @@ -9,7 +9,7 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Exception; +namespace League\OAuth2\Exception; /** * InvalidGrantTypeException Exception diff --git a/src/OAuth2/Exception/OAuth2Exception.php b/src/League/OAuth2/Exception/OAuth2Exception.php similarity index 90% rename from src/OAuth2/Exception/OAuth2Exception.php rename to src/League/OAuth2/Exception/OAuth2Exception.php index ad294199..90cd2984 100644 --- a/src/OAuth2/Exception/OAuth2Exception.php +++ b/src/League/OAuth2/Exception/OAuth2Exception.php @@ -9,7 +9,7 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Exception; +namespace League\OAuth2\Exception; /** * Exception class diff --git a/src/OAuth2/Grant/AuthCode.php b/src/League/OAuth2/Grant/AuthCode.php similarity index 97% rename from src/OAuth2/Grant/AuthCode.php rename to src/League/OAuth2/Grant/AuthCode.php index 733cb2b2..8ef83673 100644 --- a/src/OAuth2/Grant/AuthCode.php +++ b/src/League/OAuth2/Grant/AuthCode.php @@ -9,15 +9,15 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Grant; +namespace League\OAuth2\Grant; -use OAuth2\Request; -use OAuth2\AuthServer; -use OAuth2\Exception; -use OAuth2\Util\SecureKey; -use OAuth2\Storage\SessionInterface; -use OAuth2\Storage\ClientInterface; -use OAuth2\Storage\ScopeInterface; +use League\OAuth2\Request; +use League\OAuth2\AuthServer; +use League\OAuth2\Exception; +use League\OAuth2\Util\SecureKey; +use League\OAuth2\Storage\SessionInterface; +use League\OAuth2\Storage\ClientInterface; +use League\OAuth2\Storage\ScopeInterface; /** * Auth code grant class diff --git a/src/OAuth2/Grant/ClientCredentials.php b/src/League/OAuth2/Grant/ClientCredentials.php similarity index 94% rename from src/OAuth2/Grant/ClientCredentials.php rename to src/League/OAuth2/Grant/ClientCredentials.php index 38b63c9d..ae6147e5 100644 --- a/src/OAuth2/Grant/ClientCredentials.php +++ b/src/League/OAuth2/Grant/ClientCredentials.php @@ -9,15 +9,15 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Grant; +namespace League\OAuth2\Grant; -use OAuth2\Request; -use OAuth2\AuthServer; -use OAuth2\Exception; -use OAuth2\Util\SecureKey; -use OAuth2\Storage\SessionInterface; -use OAuth2\Storage\ClientInterface; -use OAuth2\Storage\ScopeInterface; +use League\OAuth2\Request; +use League\OAuth2\AuthServer; +use League\OAuth2\Exception; +use League\OAuth2\Util\SecureKey; +use League\OAuth2\Storage\SessionInterface; +use League\OAuth2\Storage\ClientInterface; +use League\OAuth2\Storage\ScopeInterface; /** * Client credentials grant class diff --git a/src/OAuth2/Grant/GrantTypeInterface.php b/src/League/OAuth2/Grant/GrantTypeInterface.php similarity index 85% rename from src/OAuth2/Grant/GrantTypeInterface.php rename to src/League/OAuth2/Grant/GrantTypeInterface.php index 56e45cfd..c162a27b 100644 --- a/src/OAuth2/Grant/GrantTypeInterface.php +++ b/src/League/OAuth2/Grant/GrantTypeInterface.php @@ -9,15 +9,15 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Grant; +namespace League\OAuth2\Grant; -use OAuth2\Request; -use OAuth2\AuthServer; -use OAuth2\Exception; -use OAuth2\Util\SecureKey; -use OAuth2\Storage\SessionInterface; -use OAuth2\Storage\ClientInterface; -use OAuth2\Storage\ScopeInterface; +use League\OAuth2\Request; +use League\OAuth2\AuthServer; +use League\OAuth2\Exception; +use League\OAuth2\Util\SecureKey; +use League\OAuth2\Storage\SessionInterface; +use League\OAuth2\Storage\ClientInterface; +use League\OAuth2\Storage\ScopeInterface; interface GrantTypeInterface { diff --git a/src/OAuth2/Grant/Implicit.php b/src/League/OAuth2/Grant/Implicit.php similarity index 89% rename from src/OAuth2/Grant/Implicit.php rename to src/League/OAuth2/Grant/Implicit.php index defa2731..d603c280 100644 --- a/src/OAuth2/Grant/Implicit.php +++ b/src/League/OAuth2/Grant/Implicit.php @@ -9,15 +9,15 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Grant; +namespace League\OAuth2\Grant; -use OAuth2\Request; -use OAuth2\AuthServer; -use OAuth2\Exception; -use OAuth2\Util\SecureKey; -use OAuth2\Storage\SessionInterface; -use OAuth2\Storage\ClientInterface; -use OAuth2\Storage\ScopeInterface; +use League\OAuth2\Request; +use League\OAuth2\AuthServer; +use League\OAuth2\Exception; +use League\OAuth2\Util\SecureKey; +use League\OAuth2\Storage\SessionInterface; +use League\OAuth2\Storage\ClientInterface; +use League\OAuth2\Storage\ScopeInterface; /** * Client credentials grant class diff --git a/src/OAuth2/Grant/Password.php b/src/League/OAuth2/Grant/Password.php similarity index 96% rename from src/OAuth2/Grant/Password.php rename to src/League/OAuth2/Grant/Password.php index 4c706785..73ad1d96 100644 --- a/src/OAuth2/Grant/Password.php +++ b/src/League/OAuth2/Grant/Password.php @@ -9,15 +9,15 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Grant; +namespace League\OAuth2\Grant; -use OAuth2\Request; -use OAuth2\AuthServer; -use OAuth2\Exception; -use OAuth2\Util\SecureKey; -use OAuth2\Storage\SessionInterface; -use OAuth2\Storage\ClientInterface; -use OAuth2\Storage\ScopeInterface; +use League\OAuth2\Request; +use League\OAuth2\AuthServer; +use League\OAuth2\Exception; +use League\OAuth2\Util\SecureKey; +use League\OAuth2\Storage\SessionInterface; +use League\OAuth2\Storage\ClientInterface; +use League\OAuth2\Storage\ScopeInterface; /** * Password grant class diff --git a/src/OAuth2/Grant/RefreshToken.php b/src/League/OAuth2/Grant/RefreshToken.php similarity index 94% rename from src/OAuth2/Grant/RefreshToken.php rename to src/League/OAuth2/Grant/RefreshToken.php index 6e7a4efe..ee304fe7 100644 --- a/src/OAuth2/Grant/RefreshToken.php +++ b/src/League/OAuth2/Grant/RefreshToken.php @@ -9,15 +9,15 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Grant; +namespace League\OAuth2\Grant; -use OAuth2\Request; -use OAuth2\AuthServer; -use OAuth2\Exception; -use OAuth2\Util\SecureKey; -use OAuth2\Storage\SessionInterface; -use OAuth2\Storage\ClientInterface; -use OAuth2\Storage\ScopeInterface; +use League\OAuth2\Request; +use League\OAuth2\AuthServer; +use League\OAuth2\Exception; +use League\OAuth2\Util\SecureKey; +use League\OAuth2\Storage\SessionInterface; +use League\OAuth2\Storage\ClientInterface; +use League\OAuth2\Storage\ScopeInterface; /** * Referesh token grant diff --git a/src/OAuth2/ResourceServer.php b/src/League/OAuth2/ResourceServer.php similarity index 97% rename from src/OAuth2/ResourceServer.php rename to src/League/OAuth2/ResourceServer.php index f9e51fc5..525cabea 100644 --- a/src/OAuth2/ResourceServer.php +++ b/src/League/OAuth2/ResourceServer.php @@ -9,12 +9,12 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2; +namespace League\OAuth2; use OutOfBoundsException; -use OAuth2\Storage\SessionInterface; -use OAuth2\Util\RequestInterface; -use OAuth2\Util\Request; +use League\OAuth2\Storage\SessionInterface; +use League\OAuth2\Util\RequestInterface; +use League\OAuth2\Util\Request; /** * OAuth 2.0 Resource Server diff --git a/src/OAuth2/Storage/ClientInterface.php b/src/League/OAuth2/Storage/ClientInterface.php similarity index 98% rename from src/OAuth2/Storage/ClientInterface.php rename to src/League/OAuth2/Storage/ClientInterface.php index ee4437b8..101b7454 100644 --- a/src/OAuth2/Storage/ClientInterface.php +++ b/src/League/OAuth2/Storage/ClientInterface.php @@ -9,7 +9,7 @@ * @link http://github.com/lncd/oauth2 */ -namespace OAuth2\Storage; +namespace League\OAuth2\Storage; interface ClientInterface { diff --git a/src/OAuth2/Storage/PDO/Client.php b/src/League/OAuth2/Storage/PDO/Client.php similarity index 96% rename from src/OAuth2/Storage/PDO/Client.php rename to src/League/OAuth2/Storage/PDO/Client.php index a972aa15..596a440a 100644 --- a/src/OAuth2/Storage/PDO/Client.php +++ b/src/League/OAuth2/Storage/PDO/Client.php @@ -1,8 +1,8 @@