mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Register the FOSRestDescriber
This commit is contained in:
parent
243680c73c
commit
cbd0b453ce
14
Resources/config/fos_rest.xml
Normal file
14
Resources/config/fos_rest.xml
Normal 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>
|
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user