Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing connection based events
Related: #236. This will allow us to listen for a ConnectionFailed event which will be executed when all hosts have been attempted against, instead of a BindFailure event, which will be fired each time a host is attempted.
- Loading branch information
1 parent
56700e0
commit 29e5a95
Showing
6 changed files
with
106 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace LdapRecord\Events; | ||
|
||
class Connected extends ConnectionEvent | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace LdapRecord\Events; | ||
|
||
class Connecting extends ConnectionEvent | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace LdapRecord\Events; | ||
|
||
use LdapRecord\Connection; | ||
|
||
abstract class ConnectionEvent | ||
{ | ||
/** | ||
* The LDAP connection. | ||
* | ||
* @var Connection | ||
*/ | ||
public $connection; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param Connection $connection | ||
*/ | ||
public function __construct(Connection $connection) | ||
{ | ||
$this->connection = $connection; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace LdapRecord\Events; | ||
|
||
class ConnectionFailed extends ConnectionEvent | ||
{ | ||
// | ||
} |