File tree Expand file tree Collapse file tree 6 files changed +11
-3
lines changed Expand file tree Collapse file tree 6 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 29
29
"hyperf/macroable" : " ~3.0.0" ,
30
30
"hyperf/tappable" : " ~3.0.0" ,
31
31
"hyperf/translation" : " ~3.0.0" ,
32
+ "hyperf/support" : " ~3.0.0" ,
32
33
"hyperf/utils" : " ~3.0.0" ,
33
34
"nesbot/carbon" : " ^2.21" ,
34
35
"psr/container" : " ^1.0|^2.0" ,
Original file line number Diff line number Diff line change 17
17
use Hyperf \Stringable \Str ;
18
18
use Hyperf \Validation \Validator ;
19
19
20
+ use function Hyperf \Support \make ;
21
+
20
22
trait FormatsMessages
21
23
{
22
24
use ReplacesAttributes;
Original file line number Diff line number Diff line change 14
14
use Hyperf \Database \ConnectionResolverInterface ;
15
15
use Psr \Container \ContainerInterface ;
16
16
17
+ use function Hyperf \Support \make ;
18
+
17
19
class DatabasePresenceVerifierFactory
18
20
{
19
21
public function __invoke (ContainerInterface $ container )
Original file line number Diff line number Diff line change 19
19
use Hyperf \Contract \ValidatorInterface as ValidatorContract ;
20
20
use Hyperf \HttpMessage \Upload \UploadedFile ;
21
21
use Hyperf \Stringable \Str ;
22
- use Hyperf \Utils \Fluent ;
23
- use Hyperf \Utils \MessageBag ;
22
+ use Hyperf \Support \Fluent ;
23
+ use Hyperf \Support \MessageBag ;
24
24
use Hyperf \Validation \Contract \ImplicitRule ;
25
25
use Hyperf \Validation \Contract \PresenceVerifierInterface ;
26
26
use Hyperf \Validation \Contract \Rule as RuleContract ;
30
30
31
31
use function Hyperf \Collection \collect ;
32
32
use function Hyperf \Collection \data_get ;
33
+ use function Hyperf \Support \make ;
33
34
use function Hyperf \Tappable \tap ;
34
35
35
36
class Validator implements ValidatorContract
Original file line number Diff line number Diff line change 18
18
use Psr \Container \ContainerInterface ;
19
19
use Psr \EventDispatcher \EventDispatcherInterface ;
20
20
21
+ use function Hyperf \Support \make ;
22
+
21
23
class ValidatorFactoryFactory
22
24
{
23
25
public function __invoke (ContainerInterface $ container )
Original file line number Diff line number Diff line change 15
15
use Hyperf \Contract \TranslatorInterface ;
16
16
use Hyperf \Contract \ValidatorInterface ;
17
17
use Hyperf \HttpMessage \Base \Response ;
18
- use Hyperf \Utils \MessageBag ;
18
+ use Hyperf \Support \MessageBag ;
19
19
use Hyperf \Validation \Contract \ValidatorFactoryInterface ;
20
20
use Hyperf \Validation \ValidationException ;
21
21
use Hyperf \Validation \ValidationExceptionHandler ;
You can’t perform that action at this time.
0 commit comments