CoreFiles by mySites.guru
ConnectionInterface.php38 lines, 1,244 bytes, from Joomla_5.1.0-alpha4-Alpha-Full_Package.zip
Raw History Compare with 5.1.0-alpha3
md5
b6842d42abaae30b3e881c2f04d60d90
sha1
5475c64872e87a269fc3d71e7c1ee5a8b3efe7f1
sha256
289e2200735f62a59acf327bed894e982b222b4b3147b28f56857c3975086d89
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Ldap\Adapter;

use Symfony\Component\Ldap\Exception\AlreadyExistsException;
use Symfony\Component\Ldap\Exception\ConnectionTimeoutException;
use Symfony\Component\Ldap\Exception\InvalidCredentialsException;

/**
 * @author Charles Sarrazin <[email protected]>
 */
interface ConnectionInterface
{
    /**
     * Checks whether the connection was already bound or not.
     */
    public function isBound(): bool;

    /**
     * Binds the connection against a user's DN and password.
     *
     * @throws AlreadyExistsException      When the connection can't be created because of an LDAP_ALREADY_EXISTS error
     * @throws ConnectionTimeoutException  When the connection can't be created because of an LDAP_TIMEOUT error
     * @throws InvalidCredentialsException When the connection can't be created because of an LDAP_INVALID_CREDENTIALS error
     *
     * @return void
     */
    public function bind(string $dn = null, #[\SensitiveParameter] string $password = null);
}

The same content is in 21 releases, Joomla 5.0.0-alpha2 to 5.1.0-alpha4. See them all, or every version of this file.