diff --git a/src/Exceptions.php b/src/Exceptions.php index 25a2fb6..c7c7a07 100644 --- a/src/Exceptions.php +++ b/src/Exceptions.php @@ -40,8 +40,6 @@ class DatabaseError extends AuthError {} class DatabaseDriverError extends DatabaseError {} -class WrongMysqlDatabaseDriverError extends DatabaseDriverError {} - class MissingCallbackError extends AuthError {} class HeadersAlreadySentError extends AuthError {} diff --git a/src/UserManager.php b/src/UserManager.php index 9f12bcc..2b9c692 100644 --- a/src/UserManager.php +++ b/src/UserManager.php @@ -66,16 +66,6 @@ abstract class UserManager { throw new \InvalidArgumentException('The database connection must be an instance of either `PdoDatabase`, `PdoDsn` or `PDO`'); } - - $this->db->addOnConnectListener(function (PdoDatabase $db) { - // if a MySQL database is used - if ($db->getDriverName() === 'MySQL') { - // if the required MySQL Native Driver (mysqlnd) is not used (but instead the older MySQL Client Library (libmysqlclient)) - if (\extension_loaded('mysqlnd') === false && \stripos($db->getClientVersion(), 'mysqlnd') === false) { - throw new WrongMysqlDatabaseDriverError('You must use PDO with the newer \'mysqlnd\' driver instead of the older \'libmysqlclient\' driver'); - } - } - }); } /**