File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 165
165
use ApiPlatform \Metadata \UrlGeneratorInterface ;
166
166
use ApiPlatform \Metadata \Util \Inflector ;
167
167
use ApiPlatform \Metadata \Util \ReflectionClassRecursiveIterator ;
168
+ use ApiPlatform \OpenApi \Command \OpenApiCommand ;
168
169
use ApiPlatform \OpenApi \Factory \OpenApiFactory ;
169
170
use ApiPlatform \OpenApi \Factory \OpenApiFactoryInterface ;
170
171
use ApiPlatform \OpenApi \Options ;
@@ -842,6 +843,10 @@ public function register(): void
842
843
);
843
844
});
844
845
846
+ $ this ->app ->singleton (OpenApiCommand::class, function (Application $ app ) {
847
+ return new OpenApiCommand ($ app ->make (OpenApiFactory::class), $ app ->make (Serializer::class));
848
+ });
849
+
845
850
$ this ->app ->bind (DefinitionNameFactoryInterface::class, DefinitionNameFactory::class);
846
851
$ this ->app ->singleton (DefinitionNameFactory::class, function (Application $ app ) {
847
852
/** @var ConfigRepository */
@@ -1100,6 +1105,7 @@ function (Application $app) {
1100
1105
Console \InstallCommand::class,
1101
1106
Console \Maker \MakeStateProcessorCommand::class,
1102
1107
Console \Maker \MakeStateProviderCommand::class,
1108
+ OpenApiCommand::class,
1103
1109
]);
1104
1110
}
1105
1111
Original file line number Diff line number Diff line change 32
32
"api-platform/metadata" : " ^4.1" ,
33
33
"api-platform/state" : " ^4.1" ,
34
34
"symfony/console" : " ^6.4 || ^7.0" ,
35
+ "symfony/filesystem" : " ^7.2" ,
35
36
"symfony/property-access" : " ^6.4 || ^7.0" ,
36
37
"symfony/serializer" : " ^6.4 || ^7.0"
37
38
},
You can’t perform that action at this time.
0 commit comments