diff --git a/composer.json b/composer.json index c2b31e89..fa4bf547 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ }, "autoload": { "psr-0": { - "League\\OAuth2": "src/" + "League\\OAuth2\\Server": "src/" } }, "suggest": {} diff --git a/src/League/OAuth2/AuthServer.php b/src/League/OAuth2/Server/AuthServer.php similarity index 98% rename from src/League/OAuth2/AuthServer.php rename to src/League/OAuth2/Server/AuthServer.php index 403f8a7c..b792f9bc 100644 --- a/src/League/OAuth2/AuthServer.php +++ b/src/League/OAuth2/Server/AuthServer.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Authorization Server * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2; diff --git a/src/League/OAuth2/Exception/ClientException.php b/src/League/OAuth2/Server/Exception/ClientException.php similarity index 60% rename from src/League/OAuth2/Exception/ClientException.php rename to src/League/OAuth2/Server/Exception/ClientException.php index 96d0fa64..23dd9685 100644 --- a/src/League/OAuth2/Exception/ClientException.php +++ b/src/League/OAuth2/Server/Exception/ClientException.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Client Exception * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Exception; diff --git a/src/League/OAuth2/Exception/InvalidAccessTokenException.php b/src/League/OAuth2/Server/Exception/InvalidAccessTokenException.php similarity index 63% rename from src/League/OAuth2/Exception/InvalidAccessTokenException.php rename to src/League/OAuth2/Server/Exception/InvalidAccessTokenException.php index 809adef0..85e7c2e1 100644 --- a/src/League/OAuth2/Exception/InvalidAccessTokenException.php +++ b/src/League/OAuth2/Server/Exception/InvalidAccessTokenException.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Invalid Access Token Exception * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Exception; diff --git a/src/League/OAuth2/Exception/InvalidGrantTypeException.php b/src/League/OAuth2/Server/Exception/InvalidGrantTypeException.php similarity index 63% rename from src/League/OAuth2/Exception/InvalidGrantTypeException.php rename to src/League/OAuth2/Server/Exception/InvalidGrantTypeException.php index ec7909f2..c64107b3 100644 --- a/src/League/OAuth2/Exception/InvalidGrantTypeException.php +++ b/src/League/OAuth2/Server/Exception/InvalidGrantTypeException.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Invalid Grant Type Exception * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Exception; diff --git a/src/League/OAuth2/Exception/OAuth2Exception.php b/src/League/OAuth2/Server/Exception/OAuth2Exception.php similarity index 59% rename from src/League/OAuth2/Exception/OAuth2Exception.php rename to src/League/OAuth2/Server/Exception/OAuth2Exception.php index 90cd2984..1d559142 100644 --- a/src/League/OAuth2/Exception/OAuth2Exception.php +++ b/src/League/OAuth2/Server/Exception/OAuth2Exception.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Base Exception * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Exception; diff --git a/src/League/OAuth2/Grant/AuthCode.php b/src/League/OAuth2/Server/Grant/AuthCode.php similarity index 98% rename from src/League/OAuth2/Grant/AuthCode.php rename to src/League/OAuth2/Server/Grant/AuthCode.php index 8ef83673..9d78eb01 100644 --- a/src/League/OAuth2/Grant/AuthCode.php +++ b/src/League/OAuth2/Server/Grant/AuthCode.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Auth code grant * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Grant; diff --git a/src/League/OAuth2/Grant/ClientCredentials.php b/src/League/OAuth2/Server/Grant/ClientCredentials.php similarity index 96% rename from src/League/OAuth2/Grant/ClientCredentials.php rename to src/League/OAuth2/Server/Grant/ClientCredentials.php index ae6147e5..a5d43293 100644 --- a/src/League/OAuth2/Grant/ClientCredentials.php +++ b/src/League/OAuth2/Server/Grant/ClientCredentials.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Client credentials grant * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Grant; diff --git a/src/League/OAuth2/Grant/GrantTypeInterface.php b/src/League/OAuth2/Server/Grant/GrantTypeInterface.php similarity index 91% rename from src/League/OAuth2/Grant/GrantTypeInterface.php rename to src/League/OAuth2/Server/Grant/GrantTypeInterface.php index c162a27b..698e839b 100644 --- a/src/League/OAuth2/Grant/GrantTypeInterface.php +++ b/src/League/OAuth2/Server/Grant/GrantTypeInterface.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Grant type interface * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Grant; diff --git a/src/League/OAuth2/Grant/Implicit.php b/src/League/OAuth2/Server/Grant/Implicit.php similarity index 93% rename from src/League/OAuth2/Grant/Implicit.php rename to src/League/OAuth2/Server/Grant/Implicit.php index d603c280..03ae3130 100644 --- a/src/League/OAuth2/Grant/Implicit.php +++ b/src/League/OAuth2/Server/Grant/Implicit.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 implicit grant * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Grant; diff --git a/src/League/OAuth2/Grant/Password.php b/src/League/OAuth2/Server/Grant/Password.php similarity index 97% rename from src/League/OAuth2/Grant/Password.php rename to src/League/OAuth2/Server/Grant/Password.php index 73ad1d96..71fce692 100644 --- a/src/League/OAuth2/Grant/Password.php +++ b/src/League/OAuth2/Server/Grant/Password.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Password grant * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Grant; diff --git a/src/League/OAuth2/Grant/RefreshToken.php b/src/League/OAuth2/Server/Grant/RefreshToken.php similarity index 96% rename from src/League/OAuth2/Grant/RefreshToken.php rename to src/League/OAuth2/Server/Grant/RefreshToken.php index ee304fe7..14795828 100644 --- a/src/League/OAuth2/Grant/RefreshToken.php +++ b/src/League/OAuth2/Server/Grant/RefreshToken.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Refresh token grant * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Grant; diff --git a/src/League/OAuth2/ResourceServer.php b/src/League/OAuth2/Server/ResourceServer.php similarity index 97% rename from src/League/OAuth2/ResourceServer.php rename to src/League/OAuth2/Server/ResourceServer.php index 525cabea..378de900 100644 --- a/src/League/OAuth2/ResourceServer.php +++ b/src/League/OAuth2/Server/ResourceServer.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Resource Server * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2; diff --git a/src/League/OAuth2/Storage/ClientInterface.php b/src/League/OAuth2/Server/Storage/ClientInterface.php similarity index 91% rename from src/League/OAuth2/Storage/ClientInterface.php rename to src/League/OAuth2/Server/Storage/ClientInterface.php index 101b7454..8332aa5c 100644 --- a/src/League/OAuth2/Storage/ClientInterface.php +++ b/src/League/OAuth2/Server/Storage/ClientInterface.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Client storage interface * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Storage; diff --git a/src/League/OAuth2/Storage/PDO/Client.php b/src/League/OAuth2/Server/Storage/PDO/Client.php similarity index 100% rename from src/League/OAuth2/Storage/PDO/Client.php rename to src/League/OAuth2/Server/Storage/PDO/Client.php diff --git a/src/League/OAuth2/Storage/PDO/Db.php b/src/League/OAuth2/Server/Storage/PDO/Db.php similarity index 100% rename from src/League/OAuth2/Storage/PDO/Db.php rename to src/League/OAuth2/Server/Storage/PDO/Db.php diff --git a/src/League/OAuth2/Storage/PDO/Scope.php b/src/League/OAuth2/Server/Storage/PDO/Scope.php similarity index 100% rename from src/League/OAuth2/Storage/PDO/Scope.php rename to src/League/OAuth2/Server/Storage/PDO/Scope.php diff --git a/src/League/OAuth2/Storage/PDO/Session.php b/src/League/OAuth2/Server/Storage/PDO/Session.php similarity index 100% rename from src/League/OAuth2/Storage/PDO/Session.php rename to src/League/OAuth2/Server/Storage/PDO/Session.php diff --git a/src/League/OAuth2/Storage/ScopeInterface.php b/src/League/OAuth2/Server/Storage/ScopeInterface.php similarity index 84% rename from src/League/OAuth2/Storage/ScopeInterface.php rename to src/League/OAuth2/Server/Storage/ScopeInterface.php index 655c9b89..920e6be3 100644 --- a/src/League/OAuth2/Storage/ScopeInterface.php +++ b/src/League/OAuth2/Server/Storage/ScopeInterface.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Scope storage interface * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Storage; diff --git a/src/League/OAuth2/Storage/SessionInterface.php b/src/League/OAuth2/Server/Storage/SessionInterface.php similarity index 96% rename from src/League/OAuth2/Storage/SessionInterface.php rename to src/League/OAuth2/Server/Storage/SessionInterface.php index c14bbb29..130c1cce 100644 --- a/src/League/OAuth2/Storage/SessionInterface.php +++ b/src/League/OAuth2/Server/Storage/SessionInterface.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Session storage interface * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Storage; diff --git a/src/League/OAuth2/Util/RedirectUri.php b/src/League/OAuth2/Server/Util/RedirectUri.php similarity index 81% rename from src/League/OAuth2/Util/RedirectUri.php rename to src/League/OAuth2/Server/Util/RedirectUri.php index 1763995f..c724630b 100644 --- a/src/League/OAuth2/Util/RedirectUri.php +++ b/src/League/OAuth2/Server/Util/RedirectUri.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Redirect URI generator * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Util; diff --git a/src/League/OAuth2/Util/Request.php b/src/League/OAuth2/Server/Util/Request.php similarity index 100% rename from src/League/OAuth2/Util/Request.php rename to src/League/OAuth2/Server/Util/Request.php diff --git a/src/League/OAuth2/Util/RequestInterface.php b/src/League/OAuth2/Server/Util/RequestInterface.php similarity index 100% rename from src/League/OAuth2/Util/RequestInterface.php rename to src/League/OAuth2/Server/Util/RequestInterface.php diff --git a/src/League/OAuth2/Util/SecureKey.php b/src/League/OAuth2/Server/Util/SecureKey.php similarity index 86% rename from src/League/OAuth2/Util/SecureKey.php rename to src/League/OAuth2/Server/Util/SecureKey.php index aa0d86d4..b64f8f45 100644 --- a/src/League/OAuth2/Util/SecureKey.php +++ b/src/League/OAuth2/Server/Util/SecureKey.php @@ -2,11 +2,11 @@ /** * OAuth 2.0 Secure key generator * - * @package lncd/oauth2 + * @package php-loep/oauth2-server * @author Alex Bilbie - * @copyright Copyright (c) 2013 University of Lincoln + * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages * @license http://mit-license.org/ - * @link http://github.com/lncd/oauth2 + * @link http://github.com/php-leop/oauth2-server */ namespace League\OAuth2\Util;