diff --git a/composer.json b/composer.json index 80cbc9d..a0f98e7 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "adoy/oauth2", "description": "Light PHP wrapper for the OAuth 2.0 protocol (based on OAuth 2.0 Authorization Protocol draft-ietf-oauth-v2-15)", - "license": "LGPL-2.1", + "license": "LGPL-2.1", "authors": [ { "name": "Charron Pierrick", @@ -16,6 +16,6 @@ "php": ">=5.3.0" }, "autoload": { - "psr-0": {"OAuth2": "src/"} + "psr-0": {"Adoy\\OAuth2\\": "src/"} } } diff --git a/src/OAuth2/Client.php b/src/Adoy/OAuth2/Client.php similarity index 99% rename from src/OAuth2/Client.php rename to src/Adoy/OAuth2/Client.php index c09fa5a..a5e91a4 100644 --- a/src/OAuth2/Client.php +++ b/src/Adoy/OAuth2/Client.php @@ -24,7 +24,7 @@ * @author Anis Berejeb * @version 1.3.1 */ -namespace OAuth2; +namespace Adoy\OAuth2; class Client { diff --git a/src/OAuth2/GrantType/AuthorizationCode.php b/src/Adoy/OAuth2/GrantType/AuthorizationCode.php similarity index 93% rename from src/OAuth2/GrantType/AuthorizationCode.php rename to src/Adoy/OAuth2/GrantType/AuthorizationCode.php index f3436e4..ff3db25 100644 --- a/src/OAuth2/GrantType/AuthorizationCode.php +++ b/src/Adoy/OAuth2/GrantType/AuthorizationCode.php @@ -1,7 +1,7 @@