mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 08:46:55 +00:00
correction of alias to generate php-symfony (#2547)
* [BUG][php-symfony] Fix alias generation * fix * add bundle alias option and alias logic when it is not defined * run bin/utils/ensure-up-to-date to update php-symfony.md
This commit is contained in:
committed by
William Cheng
parent
67b3766332
commit
1436ee1da6
@@ -51,14 +51,14 @@ class OpenAPIServerApiPass implements CompilerPassInterface
|
||||
*/
|
||||
public function process(ContainerBuilder $container) {
|
||||
// always first check if the primary service is defined
|
||||
if (!$container->has('open_apiserver.api.api_server')) {
|
||||
if (!$container->has('open_api_server.api.api_server')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$definition = $container->findDefinition('open_apiserver.api.api_server');
|
||||
$definition = $container->findDefinition('open_api_server.api.api_server');
|
||||
|
||||
// find all service IDs with the open_apiserver.api tag
|
||||
$taggedServices = $container->findTaggedServiceIds('open_apiserver.api');
|
||||
// find all service IDs with the open_api_server.api tag
|
||||
$taggedServices = $container->findTaggedServiceIds('open_api_server.api');
|
||||
|
||||
foreach ($taggedServices as $id => $tags) {
|
||||
foreach ($tags as $tag) {
|
||||
|
||||
@@ -52,6 +52,6 @@ class OpenAPIServerExtension extends Extension
|
||||
|
||||
public function getAlias()
|
||||
{
|
||||
return 'open_apiserver';
|
||||
return 'open_api_server';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user