|
@@ -14,8 +14,8 @@ use Lackoxygen\ShowDocGeneration\Annotations\HeaderLine; |
|
@@ -14,8 +14,8 @@ use Lackoxygen\ShowDocGeneration\Annotations\HeaderLine; |
|
14
|
use Lackoxygen\ShowDocGeneration\Annotations\Method;
|
14
|
use Lackoxygen\ShowDocGeneration\Annotations\Method;
|
|
15
|
use Lackoxygen\ShowDocGeneration\Annotations\ParamLine;
|
15
|
use Lackoxygen\ShowDocGeneration\Annotations\ParamLine;
|
|
16
|
use Lackoxygen\ShowDocGeneration\Annotations\Remark;
|
16
|
use Lackoxygen\ShowDocGeneration\Annotations\Remark;
|
|
17
|
-use Lackoxygen\ShowDocGeneration\Annotations\Resp;
|
|
|
|
18
|
use Lackoxygen\ShowDocGeneration\Annotations\RespLine;
|
17
|
use Lackoxygen\ShowDocGeneration\Annotations\RespLine;
|
|
|
|
18
|
+use Lackoxygen\ShowDocGeneration\Annotations\RespResource;
|
|
19
|
use Lackoxygen\ShowDocGeneration\Annotations\Title;
|
19
|
use Lackoxygen\ShowDocGeneration\Annotations\Title;
|
|
20
|
use Lackoxygen\ShowDocGeneration\Annotations\Url;
|
20
|
use Lackoxygen\ShowDocGeneration\Annotations\Url;
|
|
21
|
use Lackoxygen\ShowDocGeneration\Logger;
|
21
|
use Lackoxygen\ShowDocGeneration\Logger;
|
|
@@ -34,9 +34,9 @@ class Paster |
|
@@ -34,9 +34,9 @@ class Paster |
|
34
|
Method::class,
|
34
|
Method::class,
|
|
35
|
HeaderLine::class,
|
35
|
HeaderLine::class,
|
|
36
|
ParamLine::class,
|
36
|
ParamLine::class,
|
|
37
|
- Resp::class,
|
|
|
|
38
|
RespLine::class,
|
37
|
RespLine::class,
|
|
39
|
- Remark::class
|
38
|
+ Remark::class,
|
|
|
|
39
|
+ RespResource::class
|
|
40
|
];
|
40
|
];
|
|
41
|
|
41
|
|
|
42
|
/**
|
42
|
/**
|
|
@@ -135,9 +135,11 @@ class Paster |
|
@@ -135,9 +135,11 @@ class Paster |
|
135
|
protected function resolveAnnotation(Route $route): Doc
|
135
|
protected function resolveAnnotation(Route $route): Doc
|
|
136
|
{
|
136
|
{
|
|
137
|
Logger::writeln('parse ' . join('|', $route->methods()) . ' ' . $route->uri() . ' Annotation');
|
137
|
Logger::writeln('parse ' . join('|', $route->methods()) . ' ' . $route->uri() . ' Annotation');
|
|
|
|
138
|
+
|
|
138
|
$reader = new \Doctrine\Common\Annotations\AnnotationReader();
|
139
|
$reader = new \Doctrine\Common\Annotations\AnnotationReader();
|
|
139
|
|
140
|
|
|
140
|
$refClass = new \ReflectionClass(($route->getController()));
|
141
|
$refClass = new \ReflectionClass(($route->getController()));
|
|
|
|
142
|
+
|
|
141
|
$method = $refClass->getMethod($route->getActionMethod());
|
143
|
$method = $refClass->getMethod($route->getActionMethod());
|
|
142
|
|
144
|
|
|
143
|
$doc = new Doc();
|
145
|
$doc = new Doc();
|