@@ -744,6 +744,11 @@ public function register(): void
744
744
oAuthRefreshUrl: $ config ->get ('api-platform.swagger_ui.oauth.refreshUrl ' , null ),
745
745
oAuthScopes: $ config ->get ('api-platform.swagger_ui.oauth.scopes ' , []),
746
746
apiKeys: $ config ->get ('api-platform.swagger_ui.apiKeys ' , []),
747
+ contactName: $ config ->get ('api-platform.swagger_ui.contact.name ' , '' ),
748
+ contactUrl: $ config ->get ('api-platform.swagger_ui.contact.url ' , '' ),
749
+ contactEmail: $ config ->get ('api-platform.swagger_ui.contact.email ' , '' ),
750
+ licenseName: $ config ->get ('api-platform.swagger_ui.license.name ' , '' ),
751
+ licenseUrl: $ config ->get ('api-platform.swagger_ui.license.url ' , '' ),
747
752
);
748
753
});
749
754
@@ -1130,14 +1135,18 @@ private function registerGraphQl(Application $app): void
1130
1135
1131
1136
$ app ->singleton ('api_platform.graphql.type_locator ' , function (Application $ app ) {
1132
1137
$ tagged = iterator_to_array ($ app ->tagged ('api_platform.graphql.type ' ));
1138
+ $ services = [];
1139
+ foreach ($ tagged as $ service ) {
1140
+ $ services [$ service ->name ] = $ service ;
1141
+ }
1133
1142
1134
- return new ServiceLocator ($ tagged );
1143
+ return new ServiceLocator ($ services );
1135
1144
});
1136
1145
1137
1146
$ app ->singleton (TypesFactoryInterface::class, function (Application $ app ) {
1138
1147
$ tagged = iterator_to_array ($ app ->tagged ('api_platform.graphql.type ' ));
1139
1148
1140
- return new TypesFactory ($ app ->make ('api_platform.graphql.type_locator ' ), array_keys ($ tagged ));
1149
+ return new TypesFactory ($ app ->make ('api_platform.graphql.type_locator ' ), array_column ($ tagged, ' name ' ));
1141
1150
});
1142
1151
$ app ->singleton (TypesContainerInterface::class, function () {
1143
1152
return new TypesContainer ();
0 commit comments