Skip to content

Commit a53502d

Browse files
authored
Use Hyperf/Context/Context instead of Hyperf/Utils/Context. (#4565)
1 parent a218614 commit a53502d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Middleware/ValidationMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
use Closure;
1515
use FastRoute\Dispatcher;
16+
use Hyperf\Context\Context;
1617
use Hyperf\Di\ReflectionManager;
1718
use Hyperf\HttpServer\Router\Dispatched;
1819
use Hyperf\Server\Exception\ServerException;
19-
use Hyperf\Utils\Context;
2020
use Hyperf\Validation\Contract\ValidatesWhenResolved;
2121
use Hyperf\Validation\UnauthorizedException;
2222
use Psr\Container\ContainerInterface;

src/Request/FormRequest.php

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

14+
use Hyperf\Context\Context;
1415
use Hyperf\Contract\ValidatorInterface;
1516
use Hyperf\HttpServer\Request;
16-
use Hyperf\Utils\Context;
1717
use Hyperf\Validation\Contract\ValidatesWhenResolved;
1818
use Hyperf\Validation\Contract\ValidatorFactoryInterface as ValidationFactory;
1919
use Hyperf\Validation\UnauthorizedException;

tests/Cases/FormRequestTest.php

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

14+
use Hyperf\Context\Context;
1415
use Hyperf\HttpMessage\Server\Response;
1516
use Hyperf\HttpMessage\Upload\UploadedFile;
1617
use Hyperf\Translation\ArrayLoader;
1718
use Hyperf\Translation\Translator;
18-
use Hyperf\Utils\Context;
1919
use Hyperf\Validation\Contract\ValidatorFactoryInterface;
2020
use Hyperf\Validation\ValidationException;
2121
use Hyperf\Validation\ValidatorFactory;

tests/Cases/Stub/DemoRequest.php

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

14-
use Hyperf\Utils\Context;
14+
use Hyperf\Context\Context;
1515
use Hyperf\Validation\Request\FormRequest;
1616

1717
class DemoRequest extends FormRequest

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\Context;
1415
use Hyperf\Contract\NormalizerInterface;
1516
use Hyperf\Contract\ValidatorInterface;
1617
use Hyperf\Di\ClosureDefinitionCollectorInterface;
@@ -27,7 +28,6 @@
2728
use Hyperf\Translation\ArrayLoader;
2829
use Hyperf\Translation\Translator;
2930
use Hyperf\Utils\ApplicationContext;
30-
use Hyperf\Utils\Context;
3131
use Hyperf\Utils\Serializer\SimpleNormalizer;
3232
use Hyperf\Validation\Contract\ValidatorFactoryInterface;
3333
use Hyperf\Validation\Middleware\ValidationMiddleware;

0 commit comments

Comments
 (0)