From 2595890aeef052250f0ca72a1ea13cc92f2ba0ac Mon Sep 17 00:00:00 2001 From: Smuuf Date: Tue, 31 May 2016 14:21:39 +0200 Subject: [PATCH 1/3] Added "Adoy" namespace to resolve conflicts with other Composer packages --- src/OAuth2/Client.php | 2 +- src/OAuth2/GrantType/AuthorizationCode.php | 4 ++-- src/OAuth2/GrantType/ClientCredentials.php | 10 +++++----- src/OAuth2/GrantType/IGrantType.php | 6 +++--- src/OAuth2/GrantType/Password.php | 4 ++-- src/OAuth2/GrantType/RefreshToken.php | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/OAuth2/Client.php b/src/OAuth2/Client.php index c09fa5a..a5e91a4 100644 --- a/src/OAuth2/Client.php +++ b/src/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/OAuth2/GrantType/AuthorizationCode.php index f3436e4..ff3db25 100644 --- a/src/OAuth2/GrantType/AuthorizationCode.php +++ b/src/OAuth2/GrantType/AuthorizationCode.php @@ -1,7 +1,7 @@ Date: Tue, 21 Jun 2016 13:01:12 +0200 Subject: [PATCH 2/3] Fixed PSR-0 namespacing. --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 80cbc9d..987a2fe 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/"} } } From 73b8d9f8e95b2ba5d072132826d379c41707f036 Mon Sep 17 00:00:00 2001 From: Smuuf Date: Tue, 21 Jun 2016 13:05:07 +0200 Subject: [PATCH 3/3] Fixed autoloading. --- composer.json | 2 +- src/{ => Adoy}/OAuth2/Client.php | 0 src/{ => Adoy}/OAuth2/GrantType/AuthorizationCode.php | 0 src/{ => Adoy}/OAuth2/GrantType/ClientCredentials.php | 0 src/{ => Adoy}/OAuth2/GrantType/IGrantType.php | 0 src/{ => Adoy}/OAuth2/GrantType/Password.php | 0 src/{ => Adoy}/OAuth2/GrantType/RefreshToken.php | 0 7 files changed, 1 insertion(+), 1 deletion(-) rename src/{ => Adoy}/OAuth2/Client.php (100%) rename src/{ => Adoy}/OAuth2/GrantType/AuthorizationCode.php (100%) rename src/{ => Adoy}/OAuth2/GrantType/ClientCredentials.php (100%) rename src/{ => Adoy}/OAuth2/GrantType/IGrantType.php (100%) rename src/{ => Adoy}/OAuth2/GrantType/Password.php (100%) rename src/{ => Adoy}/OAuth2/GrantType/RefreshToken.php (100%) diff --git a/composer.json b/composer.json index 987a2fe..a0f98e7 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,6 @@ "php": ">=5.3.0" }, "autoload": { - "psr-0": {"Adoy\\OAuth2": "src/"} + "psr-0": {"Adoy\\OAuth2\\": "src/"} } } diff --git a/src/OAuth2/Client.php b/src/Adoy/OAuth2/Client.php similarity index 100% rename from src/OAuth2/Client.php rename to src/Adoy/OAuth2/Client.php diff --git a/src/OAuth2/GrantType/AuthorizationCode.php b/src/Adoy/OAuth2/GrantType/AuthorizationCode.php similarity index 100% rename from src/OAuth2/GrantType/AuthorizationCode.php rename to src/Adoy/OAuth2/GrantType/AuthorizationCode.php diff --git a/src/OAuth2/GrantType/ClientCredentials.php b/src/Adoy/OAuth2/GrantType/ClientCredentials.php similarity index 100% rename from src/OAuth2/GrantType/ClientCredentials.php rename to src/Adoy/OAuth2/GrantType/ClientCredentials.php diff --git a/src/OAuth2/GrantType/IGrantType.php b/src/Adoy/OAuth2/GrantType/IGrantType.php similarity index 100% rename from src/OAuth2/GrantType/IGrantType.php rename to src/Adoy/OAuth2/GrantType/IGrantType.php diff --git a/src/OAuth2/GrantType/Password.php b/src/Adoy/OAuth2/GrantType/Password.php similarity index 100% rename from src/OAuth2/GrantType/Password.php rename to src/Adoy/OAuth2/GrantType/Password.php diff --git a/src/OAuth2/GrantType/RefreshToken.php b/src/Adoy/OAuth2/GrantType/RefreshToken.php similarity index 100% rename from src/OAuth2/GrantType/RefreshToken.php rename to src/Adoy/OAuth2/GrantType/RefreshToken.php