File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33Loads routes in Symfony based on [ OpenAPI/Swagger annotations] ( https://github.com/zircote/swagger-php ) .
44
5- ![ CI] ( https://github.com/Tobion/OpenAPI-Symfony-Routing/workflows/CI/badge.svg )
5+ [ ![ CI] ( https://github.com/Tobion/OpenAPI-Symfony-Routing/workflows/CI/badge.svg )] ( https://github.com/Tobion/OpenAPI-Symfony-Routing/actions )
66
77## Installation
88
@@ -42,10 +42,8 @@ This library provides an `OpenApiRouteLoader` that you need to define as service
4242``` yaml
4343# config/services.yaml
4444services :
45- _defaults :
46- autoconfigure : true
47-
4845 Tobion\OpenApiSymfonyRouting\OpenApiRouteLoader :
46+ autoconfigure : true
4947 # Looks for OpenAPI/Swagger annotations in the symfony flex default "src" directory
5048 factory : [Tobion\OpenApiSymfonyRouting\OpenApiRouteLoader, fromSrcDirectory]
5149` ` `
@@ -66,6 +64,7 @@ openapi_routes:
6664` ` ` yaml
6765services :
6866 Tobion\OpenApiSymfonyRouting\OpenApiRouteLoader :
67+ autoconfigure : true
6968 factory : [Tobion\OpenApiSymfonyRouting\OpenApiRouteLoader, fromDirectories]
7069 arguments :
7170 - ' %kernel.project_dir%/src'
You can’t perform that action at this time.
0 commit comments