Skip to content

Commit c3e914c

Browse files
committed
minor #32316 [Ldap] Document the new exceptions thrown by the code (javiereguiluz)
This PR was merged into the 4.4 branch. Discussion ---------- [Ldap] Document the new exceptions thrown by the code | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | - | License | MIT | Doc PR | not needed While deciding if we should document #31547 I saw that the new exceptions weren't documented in the code. I don't know if this is the place where this should be added. Commits ------- 0d27af9 [Ldap] Document the new exceptions thrown by the code
2 parents e0e476d + 0d27af9 commit c3e914c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/Ldap/Adapter/ConnectionInterface.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
namespace Symfony\Component\Ldap\Adapter;
1313

14+
use Symfony\Component\Ldap\Exception\AlreadyExistsException;
15+
use Symfony\Component\Ldap\Exception\ConnectionTimeoutException;
16+
use Symfony\Component\Ldap\Exception\InvalidCredentialsException;
17+
1418
/**
1519
* @author Charles Sarrazin <charles@sarraz.in>
1620
*/
@@ -28,6 +32,10 @@ public function isBound();
2832
*
2933
* @param string $dn The user's DN
3034
* @param string $password The associated password
35+
*
36+
* @throws AlreadyExistsException When the connection can't be created because of an LDAP_ALREADY_EXISTS error
37+
* @throws ConnectionTimeoutException When the connection can't be created because of an LDAP_TIMEOUT error
38+
* @throws InvalidCredentialsException When the connection can't be created because of an LDAP_INVALID_CREDENTIALS error
3139
*/
3240
public function bind($dn = null, $password = null);
3341
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy