|
...
|
...
|
@@ -14,8 +14,8 @@ use Lackoxygen\ShowDocGeneration\Annotations\HeaderLine; |
|
|
|
use Lackoxygen\ShowDocGeneration\Annotations\Method;
|
|
|
|
use Lackoxygen\ShowDocGeneration\Annotations\ParamLine;
|
|
|
|
use Lackoxygen\ShowDocGeneration\Annotations\Remark;
|
|
|
|
use Lackoxygen\ShowDocGeneration\Annotations\Resp;
|
|
|
|
use Lackoxygen\ShowDocGeneration\Annotations\RespLine;
|
|
|
|
use Lackoxygen\ShowDocGeneration\Annotations\RespResource;
|
|
|
|
use Lackoxygen\ShowDocGeneration\Annotations\Title;
|
|
|
|
use Lackoxygen\ShowDocGeneration\Annotations\Url;
|
|
|
|
use Lackoxygen\ShowDocGeneration\Logger;
|
|
...
|
...
|
@@ -34,9 +34,9 @@ class Paster |
|
|
|
Method::class,
|
|
|
|
HeaderLine::class,
|
|
|
|
ParamLine::class,
|
|
|
|
Resp::class,
|
|
|
|
RespLine::class,
|
|
|
|
Remark::class
|
|
|
|
Remark::class,
|
|
|
|
RespResource::class
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -135,9 +135,11 @@ class Paster |
|
|
|
protected function resolveAnnotation(Route $route): Doc
|
|
|
|
{
|
|
|
|
Logger::writeln('parse ' . join('|', $route->methods()) . ' ' . $route->uri() . ' Annotation');
|
|
|
|
|
|
|
|
$reader = new \Doctrine\Common\Annotations\AnnotationReader();
|
|
|
|
|
|
|
|
$refClass = new \ReflectionClass(($route->getController()));
|
|
|
|
|
|
|
|
$method = $refClass->getMethod($route->getActionMethod());
|
|
|
|
|
|
|
|
$doc = new Doc();
|
...
|
...
|
|