@@ -744,6 +744,11 @@ public function register(): void
744744 oAuthRefreshUrl: $ config ->get ('api-platform.swagger_ui.oauth.refreshUrl ' , null ),
745745 oAuthScopes: $ config ->get ('api-platform.swagger_ui.oauth.scopes ' , []),
746746 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 ' , '' ),
747752 );
748753 });
749754
@@ -1130,14 +1135,18 @@ private function registerGraphQl(Application $app): void
11301135
11311136 $ app ->singleton ('api_platform.graphql.type_locator ' , function (Application $ app ) {
11321137 $ tagged = iterator_to_array ($ app ->tagged ('api_platform.graphql.type ' ));
1138+ $ services = [];
1139+ foreach ($ tagged as $ service ) {
1140+ $ services [$ service ->name ] = $ service ;
1141+ }
11331142
1134- return new ServiceLocator ($ tagged );
1143+ return new ServiceLocator ($ services );
11351144 });
11361145
11371146 $ app ->singleton (TypesFactoryInterface::class, function (Application $ app ) {
11381147 $ tagged = iterator_to_array ($ app ->tagged ('api_platform.graphql.type ' ));
11391148
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 ' ));
11411150 });
11421151 $ app ->singleton (TypesContainerInterface::class, function () {
11431152 return new TypesContainer ();
0 commit comments