Skip to content

Commit 252caa2

Browse files
committed
add missing MetadataAwareNameConverterPass registration 🐛
1 parent e3f228a commit 252caa2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Bridge/Symfony/Bundle/ApiPlatformBundle.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler\DataProviderPass;
1818
use ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler\ElasticsearchClientPass;
1919
use ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler\FilterPass;
20+
use ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler\MetadataAwareNameConverterPass;
2021
use Symfony\Component\DependencyInjection\ContainerBuilder;
2122
use Symfony\Component\HttpKernel\Bundle\Bundle;
2223

@@ -38,5 +39,6 @@ public function build(ContainerBuilder $container)
3839
$container->addCompilerPass(new AnnotationFilterPass());
3940
$container->addCompilerPass(new FilterPass());
4041
$container->addCompilerPass(new ElasticsearchClientPass());
42+
$container->addCompilerPass(new MetadataAwareNameConverterPass());
4143
}
4244
}

tests/Bridge/Symfony/Bundle/ApiPlatformBundleTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler\DataProviderPass;
1919
use ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler\ElasticsearchClientPass;
2020
use ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler\FilterPass;
21+
use ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler\MetadataAwareNameConverterPass;
2122
use PHPUnit\Framework\TestCase;
2223
use Prophecy\Argument;
2324
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -34,6 +35,7 @@ public function testBuild()
3435
$containerProphecy->addCompilerPass(Argument::type(AnnotationFilterPass::class))->shouldBeCalled();
3536
$containerProphecy->addCompilerPass(Argument::type(FilterPass::class))->shouldBeCalled();
3637
$containerProphecy->addCompilerPass(Argument::type(ElasticsearchClientPass::class))->shouldBeCalled();
38+
$containerProphecy->addCompilerPass(Argument::type(MetadataAwareNameConverterPass::class))->shouldBeCalled();
3739

3840
$bundle = new ApiPlatformBundle();
3941
$bundle->build($containerProphecy->reveal());

0 commit comments

Comments
 (0)