-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #626 from DirectoryTree/FEATURE-621
Add `RulePassed` and `RuleFailed` authentication events
- Loading branch information
Showing
5 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace LdapRecord\Laravel\Events\Auth; | ||
|
||
use Illuminate\Database\Eloquent\Model as EloquentModel; | ||
use LdapRecord\Laravel\Auth\Rule; | ||
use LdapRecord\Models\Model as LdapModel; | ||
|
||
abstract class RuleEvent extends Event | ||
{ | ||
/** | ||
* The authentication rule. | ||
*/ | ||
public Rule $rule; | ||
|
||
/** | ||
* Constructor. | ||
*/ | ||
public function __construct(Rule $rule, LdapModel $object, EloquentModel $eloquent = null) | ||
{ | ||
parent::__construct($object, $eloquent); | ||
|
||
$this->rule = $rule; | ||
} | ||
} |
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\Laravel\Events\Auth; | ||
|
||
class RuleFailed extends RuleEvent | ||
{ | ||
// | ||
} |
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\Laravel\Events\Auth; | ||
|
||
class RulePassed extends RuleEvent | ||
{ | ||
// | ||
} |
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