W3cubDocs

/Symfony 4.1

Connection

class Connection extends AbstractConnection

Properties

protected $config from AbstractConnection

Methods

__construct(array $config = array()) from AbstractConnection
configureOptions(OptionsResolver $resolver)

Configures the adapter's options.

__destruct()
bool isBound()

Checks whether the connection was already bound or not.

bind(string $dn = null, string $password = null)

Binds the connection against a DN and password.

resource getResource()

Returns a link resource.

setOption($name, $value)
getOption($name)

Details

__construct(array $config = array())

Parameters

array $config

protected configureOptions(OptionsResolver $resolver)

Configures the adapter's options.

Parameters

OptionsResolver $resolver An OptionsResolver instance

__destruct()

bool isBound()

Checks whether the connection was already bound or not.

Return Value

bool

bind(string $dn = null, string $password = null)

Binds the connection against a DN and password.

Parameters

string $dn The user's DN
string $password The associated password

resource getResource()

Returns a link resource.

Return Value

resource

setOption($name, $value)

Parameters

$name
$value

getOption($name)

Parameters

$name

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Ldap/Adapter/ExtLdap/Connection.html