From ec6afdad482e23196e7897e3aa01ca596d961d94 Mon Sep 17 00:00:00 2001 From: maxsenft Date: Tue, 20 Mar 2018 15:38:35 +0100 Subject: [PATCH] Accept 'PdoDsn' and 'PDO' as well in 'Administration' constructor --- src/Administration.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Administration.php b/src/Administration.php index 75c33c2..3beaf62 100644 --- a/src/Administration.php +++ b/src/Administration.php @@ -9,6 +9,7 @@ namespace Delight\Auth; use Delight\Db\PdoDatabase; +use Delight\Db\PdoDsn; use Delight\Db\Throwable\Error; require_once __DIR__ . '/Exceptions.php'; @@ -19,10 +20,10 @@ final class Administration extends UserManager { /** * @internal * - * @param PdoDatabase $databaseConnection the database connection to operate on + * @param PdoDatabase|PdoDsn|\PDO $databaseConnection the database connection to operate on * @param string|null $dbTablePrefix (optional) the prefix for the names of all database tables used by this component */ - public function __construct(PdoDatabase $databaseConnection, $dbTablePrefix = null) { + public function __construct($databaseConnection, $dbTablePrefix = null) { parent::__construct($databaseConnection, $dbTablePrefix); }