From 0b0258f29a4e0f56c5afb55a68d44115dff4a48b Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 21 Feb 2017 08:45:27 +0100 Subject: [PATCH] Manually require file 'Exceptions.php' in parent class as well --- src/Auth.php | 2 +- src/UserManager.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Auth.php b/src/Auth.php index 0c9013e..5d4d75a 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -15,7 +15,7 @@ use Delight\Db\PdoDsn; use Delight\Db\Throwable\Error; use Delight\Db\Throwable\IntegrityConstraintViolationException; -require __DIR__.'/Exceptions.php'; +require_once __DIR__ . '/Exceptions.php'; /** Component that provides all features and utilities for secure authentication of individual users */ final class Auth extends UserManager { diff --git a/src/UserManager.php b/src/UserManager.php index bb00c2a..d174ef3 100644 --- a/src/UserManager.php +++ b/src/UserManager.php @@ -11,6 +11,8 @@ namespace Delight\Auth; use Delight\Db\PdoDatabase; use Delight\Db\PdoDsn; +require_once __DIR__ . '/Exceptions.php'; + /** Abstract base class for components implementing user management */ abstract class UserManager {