File tree Expand file tree Collapse file tree 3 files changed +22
-19
lines changed Expand file tree Collapse file tree 3 files changed +22
-19
lines changed Original file line number Diff line number Diff line change 1313use function DI \get ;
1414
1515return [
16+ OpenApiController::class => create ()
17+ ->constructor (
18+ openApiConfiguration: get (OpenApiConfiguration::class),
19+ openApiDocumentManager: get (OpenApiDocumentManagerInterface::class),
20+ responseFactory: get (ResponseFactoryInterface::class),
21+ streamFactory: get (StreamFactoryInterface::class),
22+ ),
23+
1624 'router.descriptor_loader.resources ' => add ([
17- create (OpenApiController::class)
18- ->constructor (
19- openApiConfiguration: get (OpenApiConfiguration::class),
20- openApiDocumentManager: get (OpenApiDocumentManagerInterface::class),
21- responseFactory: get (ResponseFactoryInterface::class),
22- streamFactory: get (StreamFactoryInterface::class),
23- ),
25+ OpenApiController::class,
2426 ]),
2527];
Original file line number Diff line number Diff line change 1212use function DI \get ;
1313
1414return [
15+ SwaggerController::class => create ()
16+ ->constructor (
17+ swaggerConfiguration: get (SwaggerConfiguration::class),
18+ responseFactory: get (ResponseFactoryInterface::class),
19+ streamFactory: get (StreamFactoryInterface::class),
20+ ),
21+
1522 'router.descriptor_loader.resources ' => add ([
16- create (SwaggerController::class)
17- ->constructor (
18- swaggerConfiguration: get (SwaggerConfiguration::class),
19- responseFactory: get (ResponseFactoryInterface::class),
20- streamFactory: get (StreamFactoryInterface::class),
21- ),
23+ SwaggerController::class,
2224 ]),
2325];
Original file line number Diff line number Diff line change 1717use function DI \get ;
1818
1919return [
20- 'router.openapi.initial_document.info ' => [
21- 'title ' => 'API ' ,
22- 'version ' => '1.0.0 ' ,
23- ],
24-
2520 'router.openapi.initial_document ' => [
2621 'openapi ' => OpenApiConfiguration::VERSION ,
2722 'info ' => get ('router.openapi.initial_document.info ' ),
28- 'jsonSchemaDialect ' => OpenApiConfiguration::JSON_SCHEMA_DIALECT ,
23+ ],
24+
25+ 'router.openapi.initial_document.info ' => [
26+ 'title ' => 'API ' ,
27+ 'version ' => '1.0.0 ' ,
2928 ],
3029
3130 'router.openapi.initial_operation ' => [
You can’t perform that action at this time.
0 commit comments