File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Loads routes in Symfony based on [ OpenAPI/Swagger annotations] ( https://github.com/zircote/swagger-php ) .
4
4
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 )
6
6
7
7
## Installation
8
8
@@ -42,10 +42,8 @@ This library provides an `OpenApiRouteLoader` that you need to define as service
42
42
``` yaml
43
43
# config/services.yaml
44
44
services :
45
- _defaults :
46
- autoconfigure : true
47
-
48
45
Tobion\OpenApiSymfonyRouting\OpenApiRouteLoader :
46
+ autoconfigure : true
49
47
# Looks for OpenAPI/Swagger annotations in the symfony flex default "src" directory
50
48
factory : [Tobion\OpenApiSymfonyRouting\OpenApiRouteLoader, fromSrcDirectory]
51
49
` ` `
@@ -66,6 +64,7 @@ openapi_routes:
66
64
` ` ` yaml
67
65
services :
68
66
Tobion\OpenApiSymfonyRouting\OpenApiRouteLoader :
67
+ autoconfigure : true
69
68
factory : [Tobion\OpenApiSymfonyRouting\OpenApiRouteLoader, fromDirectories]
70
69
arguments :
71
70
- ' %kernel.project_dir%/src'
You can’t perform that action at this time.
0 commit comments