Register the FOSRestDescriber

This commit is contained in:
Ener-Getick 2016-08-04 22:34:34 +02:00
parent 243680c73c
commit cbd0b453ce
No known key found for this signature in database
GPG Key ID: 9E5D2DB67BF054DD
3 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="exsyst_api_doc.route_describers.fos_rest" class="EXSyst\Bundle\ApiDocBundle\RouteDescriber\FosRestDescriber" public="false">
<argument type="service" id="annotation_reader" />
<tag name="exsyst_api_doc.route_describer" priority="-300" />
</service>
</services>
</container>

View File

@ -7,7 +7,7 @@
<service id="exsyst_api_doc.route_describers.nelmio_annotation" class="EXSyst\Bundle\ApiDocBundle\RouteDescriber\NelmioAnnotationDescriber" public="false">
<argument type="service" id="annotation_reader" />
<tag name="exsyst_api_doc.route_describer" priority="-250" />
<tag name="exsyst_api_doc.route_describer" priority="-200" />
</service>
</services>

View File

@ -13,8 +13,8 @@ namespace EXSyst\Bundle\ApiDocBundle\RouteDescriber;
use Doctrine\Common\Annotations\Reader;
use EXSyst\Component\Swagger\Swagger;
use FOS\RestBundle\Controller\Annotations\RequestParam;
use FOS\RestBundle\Controller\Annotations\QueryParam;
use FOS\RestBundle\Controller\Annotations\RequestParam;
use Symfony\Component\Routing\Route;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\Constraints\Regex;