This commit is contained in:
Ener-Getick 2016-07-14 23:52:01 +02:00
parent 3490b01d1d
commit 6770e9e809
No known key found for this signature in database
GPG Key ID: 9E5D2DB67BF054DD
4 changed files with 2 additions and 7 deletions

View File

@ -43,7 +43,7 @@ class EXSystApiDocExtension extends Extension
$container->removeDefinition('exsyst_api_doc.routing_extractors.nelmio_annotation');
}
if (!class_exists(DocBlockFactory::class)) {
$container->removeDefinition('exsyst_api_doc.routing_extractors.php_doc');
$container->removeDefinition('exsyst_api_doc.routing_extractors.php_doc');
}
}
}

View File

@ -13,10 +13,7 @@ namespace EXSyst\Bundle\ApiDocBundle\Extractor\Routing;
use phpDocumentor\Reflection\DocBlockFactory;
use phpDocumentor\Reflection\DocBlockFactoryInterface;
use Doctrine\Common\Annotations\Reader;
use gossi\swagger\Parameter;
use gossi\swagger\Swagger;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Component\Routing\Route;
class PhpDocExtractor implements RouteExtractorInterface

View File

@ -34,9 +34,6 @@ class RoutingExtractor implements ExtractorInterface
$this->routeExtractors = $routeExtractors;
}
/**
* @return Swagger
*/
public function extractIn(Swagger $swagger)
{
if (0 === count($this->routeExtractors)) {

View File

@ -39,6 +39,7 @@ class ApiController
* Please do not use this action.
*
* @Route("/deprecated", methods={"GET"})
*
* @deprecated
*/
public function deprecatedAction()