From 9b82b5d3e38f3debe771a8d40f90582fad04ece5 Mon Sep 17 00:00:00 2001 From: Guilhem Niot Date: Fri, 2 Jun 2017 21:50:07 +0200 Subject: [PATCH] Update UPGRADE-3.0.md --- UPGRADE-3.0.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UPGRADE-3.0.md b/UPGRADE-3.0.md index f3fa639..1904c21 100644 --- a/UPGRADE-3.0.md +++ b/UPGRADE-3.0.md @@ -63,7 +63,7 @@ class SwaggerDocblockConvertCommand extends ContainerAwareCommand $old = $this->locateNelmioAnnotation($code, $method->name); $code = substr_replace($code, $this->renderSwaggerAnnotation($apiDoc, $method), $old['start'], $old['length']); - $code = str_replace('use Nelmio\ApiDocBundle\Annotation\ApiDoc;', "use Nelmio\ApiDocBundle\Annotation\Model;\nuse Swagger\Annotations as SWG;", $code); + $code = str_replace('use Nelmio\ApiDocBundle\Annotation\ApiDoc;', "use Nelmio\ApiDocBundle\Annotation\Operation;\nuse Nelmio\ApiDocBundle\Annotation\Model;\nuse Swagger\Annotations as SWG;", $code); file_put_contents($path, $code); } @@ -76,7 +76,7 @@ class SwaggerDocblockConvertCommand extends ContainerAwareCommand } $path = str_replace('.{_format}', '', $apiDoc->getRoute()->getPath()); - $annotation = '@SWG\\'.ucfirst(strtolower($apiDoc->getMethod())).'( + $annotation = '@Operaion( * tags={"'.$apiDoc->getSection().'"}, * summary="'.$this->escapeQuotes($apiDoc->getDescription()).'"';