|
@@ -1,45 +1,45 @@
|
|
-<?php
|
|
+<?php
|
|
-
|
|
+
|
|
-declare(strict_types=1);
|
|
+declare(strict_types=1);
|
|
-
|
|
+
|
|
- * This file is part of Hyperf.
|
|
+ * This file is part of Hyperf.
|
|
- *
|
|
+ *
|
|
- * @link https:
|
|
+ * @link https:
|
|
- * @document https:
|
|
+ * @document https:
|
|
- * @contact group@hyperf.io
|
|
+ * @contact group@hyperf.io
|
|
- * @license https:
|
|
+ * @license https:
|
|
- */
|
|
+ */
|
|
-
|
|
+
|
|
-namespace App\Controller;
|
|
+namespace App\Controller;
|
|
-
|
|
+
|
|
-use Hyperf\Di\Annotation\Inject;
|
|
+use Hyperf\Di\Annotation\Inject;
|
|
-use Hyperf\HttpServer\Contract\RequestInterface;
|
|
+use Hyperf\HttpServer\Contract\RequestInterface;
|
|
-use Hyperf\HttpServer\Contract\ResponseInterface;
|
|
+use Hyperf\HttpServer\Contract\ResponseInterface;
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-use Hyperf\Logger\LoggerFactory;
|
|
+use Hyperf\Logger\LoggerFactory;
|
|
-use Psr\Container\ContainerInterface;
|
|
+use Psr\Container\ContainerInterface;
|
|
-use Psr\Log\LoggerInterface;
|
|
+use Psr\Log\LoggerInterface;
|
|
-
|
|
+
|
|
-abstract class AbstractController
|
|
+abstract class AbstractController
|
|
-{
|
|
+{
|
|
-
|
|
+
|
|
- protected ContainerInterface $container;
|
|
+ protected ContainerInterface $container;
|
|
-
|
|
+
|
|
-
|
|
+
|
|
- protected RequestInterface $request;
|
|
+ protected RequestInterface $request;
|
|
-
|
|
+
|
|
-
|
|
+
|
|
- protected ResponseInterface $response;
|
|
+ protected ResponseInterface $response;
|
|
-
|
|
+
|
|
-
|
|
+
|
|
- * @var LoggerInterface
|
|
+ * @var LoggerInterface
|
|
- */
|
|
+ */
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-}
|
|
+}
|