From d83221091b57fef2b9a12e8c4e5f2f27eac4e5c1 Mon Sep 17 00:00:00 2001 From: bruechert <bruechert@hab.de> Date: Mon, 11 Jan 2021 11:35:24 +0100 Subject: [PATCH] Switched to namespaces and psr-4 --- composer.json | 5 +++++ lib/Auth/Source/Pica.php | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 2fdcc6d..a6dbd10 100644 --- a/composer.json +++ b/composer.json @@ -9,5 +9,10 @@ }, "require-dev": { "simplesamlphp/simplesamlphp": "~1.13" + }, + "autoload": { + "psr-4": { + "SimpleSAML\\modules\\pica\\": "lib/" + } } } diff --git a/lib/Auth/Source/Pica.php b/lib/Auth/Source/Pica.php index d46bfed..547b210 100644 --- a/lib/Auth/Source/Pica.php +++ b/lib/Auth/Source/Pica.php @@ -1,5 +1,7 @@ <?php +namespace SimpleSAML\Module\Auth\Source; + /** * This file is part of SimpleSAMLphp Module Pica. * @@ -17,7 +19,8 @@ * along with SimpleSAMLphp Module Pica. If not, see <http://www.gnu.org/licenses/>. * * @author David Maus <maus@hab.de> - * @copyright (c) 2015 by Herzog August Bibliothek Wolfenbüttel + * @author Andy Brüchert <bruechert@hab.de> + * @copyright (c) 2015-2021 by Herzog August Bibliothek Wolfenbüttel * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License v3 or higher */ @@ -27,10 +30,11 @@ use HAB\Pica\Auth; * Authentication source for Pica-based library systems. * * @author David Maus <maus@hab.de> - * @copyright (c) 2015 by Herzog August Bibliothek Wolfenbüttel + * @author Andy Brüchert <bruechert@hab.de> + * @copyright (c) 2015-2021 by Herzog August Bibliothek Wolfenbüttel * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License v3 or higher */ -class sspmod_pica_Auth_Source_Pica extends sspmod_core_Auth_UserPassBase +class Pica extends \SimpleSAML\Module\core\Auth\UserPassBase { /** * Error message settings. -- GitLab