File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 12
12
use Inhere \Validate \Filter \DataFilteringTrait ;
13
13
use Inhere \Validate \Traits \ErrorMessageTrait ;
14
14
use Inhere \Validate \Utils \Helper ;
15
- use Inhere \Validate \Utils \ UserAndContextValidatorsTrait ;
15
+ use Inhere \Validate \Validator \ ScopedValidatorsTrait ;
16
16
use Inhere \Validate \Validator \UserValidators ;
17
17
18
18
/**
22
22
*/
23
23
trait ValidationTrait
24
24
{
25
- use DataFilteringTrait, ErrorMessageTrait, UserAndContextValidatorsTrait ;
25
+ use DataFilteringTrait, ErrorMessageTrait, ScopedValidatorsTrait ;
26
26
27
27
/** @var array The rules is by setRules() */
28
28
private $ _rules = [];
Original file line number Diff line number Diff line change 6
6
* Time: 21:47
7
7
*/
8
8
9
- namespace Inhere \Validate \Utils ;
9
+ namespace Inhere \Validate \Validator ;
10
10
11
11
/**
12
12
* Class Rule
13
- * @package Inhere\Validate\Utils
13
+ * @package Inhere\Validate\Validator
14
14
* @TODO
15
15
*/
16
16
final class Rule
Original file line number Diff line number Diff line change 6
6
* Time: 11:26
7
7
*/
8
8
9
- namespace Inhere \Validate \Utils ;
9
+ namespace Inhere \Validate \Validator ;
10
10
11
11
use Inhere \Validate \Filter \Filters ;
12
12
use Inhere \Validate \Validators ;
13
13
14
14
/**
15
- * trait UserAndContextValidatorsTrait
15
+ * trait ScopedValidatorsTrait - deps the current validation instance.
16
16
* - user custom validators
17
17
* - some validators of require context data.
18
- * @package Inhere\Validate\Utils
18
+ * @package Inhere\Validate\Validator
19
19
*/
20
- trait UserAndContextValidatorsTrait
20
+ trait ScopedValidatorsTrait
21
21
{
22
22
/** @var array user custom add's validators(current scope) */
23
23
protected $ _validators = [];
@@ -87,7 +87,7 @@ public function getValidator(string $name)
87
87
88
88
/**
89
89
* @param array $validators
90
- * @return UserAndContextValidatorsTrait
90
+ * @return ScopedValidatorsTrait
91
91
*/
92
92
public function addValidators (array $ validators )
93
93
{
You can’t perform that action at this time.
0 commit comments