From c9cb469ba79254a1def031a00bac45ca4e9b4666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= Date: Tue, 25 Jan 2022 19:44:03 +0100 Subject: [PATCH 1/2] fix: PSR-4 autoload without namespaces --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bbc6cfd..5389e5b 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ ], "autoload": { "psr-4": { - "PrivacyIdea\\PHPClient\\": "src" + "": "src" } }, "repositories": [ From b5979c10deb1c61009498984eca7fe1870ae3eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= Date: Tue, 25 Jan 2022 20:17:55 +0100 Subject: [PATCH 2/2] feat: add namespaces --- composer.json | 2 +- src/PIBadRequestException.php | 2 ++ src/PIChallenge.php | 2 ++ src/PILog.php | 2 ++ src/PIResponse.php | 2 ++ src/PrivacyIDEA.php | 3 +++ src/SDK-Autoloader.php | 5 ++++- 7 files changed, 16 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5389e5b..bbc6cfd 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ ], "autoload": { "psr-4": { - "": "src" + "PrivacyIdea\\PHPClient\\": "src" } }, "repositories": [ diff --git a/src/PIBadRequestException.php b/src/PIBadRequestException.php index c121ab8..f042d16 100644 --- a/src/PIBadRequestException.php +++ b/src/PIBadRequestException.php @@ -1,5 +1,7 @@