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:
HichemChiouchiou
2019-04-05 16:51:31 +02:00
committed by William Cheng
parent 67b3766332
commit 1436ee1da6
10 changed files with 88 additions and 71 deletions

View File

@@ -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) {

View File

@@ -52,6 +52,6 @@ class OpenAPIServerExtension extends Extension
public function getAlias()
{
return 'open_apiserver';
return 'open_api_server';
}
}