-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Add ValidatorAwareRule interface (#37442)
* Add ValidatorAwareRule interface * Update Validator.php Co-authored-by: Taylor Otwell <taylor@laravel.com>
- Loading branch information
1 parent
c2204de
commit f80e1e5
Showing
3 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/Illuminate/Contracts/Validation/ValidatorAwareRule.php
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,14 @@ | ||
<?php | ||
|
||
namespace Illuminate\Contracts\Validation; | ||
|
||
interface ValidatorAwareRule | ||
{ | ||
/** | ||
* Set the current validator. | ||
* | ||
* @param \Illuminate\Validation\Validator $validator | ||
* @return $this | ||
*/ | ||
public function setValidator($validator); | ||
} |
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