Skip to content

Commit 88f76d2

Browse files
authored
Use Hyperf\Context\ApplicationContext instead of Hyperf\Utils\ApplicationContext. (#5621)
1 parent 7230d22 commit 88f76d2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/ValidationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace Hyperf\Validation;
1313

1414
use Hyperf\Collection\Arr;
15+
use Hyperf\Context\ApplicationContext;
1516
use Hyperf\Contract\ValidatorInterface;
1617
use Hyperf\Server\Exception\ServerException;
17-
use Hyperf\Utils\ApplicationContext;
1818
use Hyperf\Validation\Contract\ValidatorFactoryInterface;
1919
use Psr\Http\Message\ResponseInterface;
2020

tests/Cases/ValidationExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
*/
1212
namespace HyperfTest\Validation\Cases;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Contract\TranslatorInterface;
1516
use Hyperf\Contract\ValidatorInterface;
1617
use Hyperf\HttpMessage\Base\Response;
17-
use Hyperf\Utils\ApplicationContext;
1818
use Hyperf\Utils\MessageBag;
1919
use Hyperf\Validation\Contract\ValidatorFactoryInterface;
2020
use Hyperf\Validation\ValidationException;

tests/Cases/ValidationExistsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212
namespace HyperfTest\Validation\Cases;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Database\Connection;
1516
use Hyperf\Database\ConnectionResolver;
1617
use Hyperf\Database\ConnectionResolverInterface;
@@ -22,7 +23,6 @@
2223
use Hyperf\Server\Entry\EventDispatcher;
2324
use Hyperf\Translation\ArrayLoader;
2425
use Hyperf\Translation\Translator;
25-
use Hyperf\Utils\ApplicationContext;
2626
use Hyperf\Validation\DatabasePresenceVerifier;
2727
use Hyperf\Validation\Rules\Exists;
2828
use Hyperf\Validation\Validator;

tests/Cases/ValidationMiddlewareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212
namespace HyperfTest\Validation\Cases;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Context\Context;
1516
use Hyperf\Contract\NormalizerInterface;
1617
use Hyperf\Contract\ValidatorInterface;
@@ -27,7 +28,6 @@
2728
use Hyperf\HttpServer\Router\DispatcherFactory;
2829
use Hyperf\Translation\ArrayLoader;
2930
use Hyperf\Translation\Translator;
30-
use Hyperf\Utils\ApplicationContext;
3131
use Hyperf\Utils\Serializer\SimpleNormalizer;
3232
use Hyperf\Validation\Contract\ValidatorFactoryInterface;
3333
use Hyperf\Validation\Middleware\ValidationMiddleware;

tests/Cases/ValidationValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
use DateTime;
1616
use DateTimeImmutable;
1717
use Hyperf\Collection\Arr;
18+
use Hyperf\Context\ApplicationContext;
1819
use Hyperf\Contract\TranslatorInterface as TranslatorContract;
1920
use Hyperf\Di\Container;
2021
use Hyperf\Di\Definition\DefinitionSourceInterface;
2122
use Hyperf\HttpMessage\Upload\UploadedFile;
2223
use Hyperf\Translation\ArrayLoader;
2324
use Hyperf\Translation\Translator;
24-
use Hyperf\Utils\ApplicationContext;
2525
use Hyperf\Validation\Contract\ImplicitRule;
2626
use Hyperf\Validation\Contract\PresenceVerifierInterface;
2727
use Hyperf\Validation\Contract\Rule;

0 commit comments

Comments
 (0)