From 5346182b2cc4818fab54df255f0457e759ecb4d0 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tim.dijen@minbzk.nl> Date: Tue, 3 Dec 2019 12:01:05 +0100 Subject: [PATCH] Delete LDAP.php This was properly solved using an autoloader-mapping --- lib/SimpleSAML/Auth/LDAP.php | 40 ------------------------------------ 1 file changed, 40 deletions(-) delete mode 100644 lib/SimpleSAML/Auth/LDAP.php diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php deleted file mode 100644 index 413776c27..000000000 --- a/lib/SimpleSAML/Auth/LDAP.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php - -namespace SimpleSAML\Auth; - -@trigger_error( - sprintf('Using the "SimpleSAML\Auth\LDAP" class is deprecated, use "SimpleSAML\Module\ldap\Auth\Ldap" instead.'), - E_USER_DEPRECATED -); - -/** - * @deprecated To be removed in 2.0 - */ -if (class_exists('\SimpleSAML\Module\ldap\Auth\Ldap')) { - class LDAP extends \SimpleSAML\Module\ldap\Auth\Ldap - { - /** - * Private constructor restricts instantiation to getInstance(). - * - * @param string $hostname - * @param bool $enable_tls - * @param bool $debug - * @param int $timeout - * @param int $port - * @param bool $referrals - * @psalm-suppress NullArgument - */ - public function __construct( - $hostname, - $enable_tls = true, - $debug = false, - $timeout = 0, - $port = 389, - $referrals = true - ) { - parent::__construct($hostname, $enable_tls, $debug, $timeout, $port, $referrals); - } - } -} else { - throw new \Exception('Missing ldap-module'); -} -- GitLab