File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/Bridge/Symfony/Bundle
tests/Bridge/Symfony/Bundle Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 17
17
use ApiPlatform \Core \Bridge \Symfony \Bundle \DependencyInjection \Compiler \DataProviderPass ;
18
18
use ApiPlatform \Core \Bridge \Symfony \Bundle \DependencyInjection \Compiler \ElasticsearchClientPass ;
19
19
use ApiPlatform \Core \Bridge \Symfony \Bundle \DependencyInjection \Compiler \FilterPass ;
20
+ use ApiPlatform \Core \Bridge \Symfony \Bundle \DependencyInjection \Compiler \MetadataAwareNameConverterPass ;
20
21
use Symfony \Component \DependencyInjection \ContainerBuilder ;
21
22
use Symfony \Component \HttpKernel \Bundle \Bundle ;
22
23
@@ -38,5 +39,6 @@ public function build(ContainerBuilder $container)
38
39
$ container ->addCompilerPass (new AnnotationFilterPass ());
39
40
$ container ->addCompilerPass (new FilterPass ());
40
41
$ container ->addCompilerPass (new ElasticsearchClientPass ());
42
+ $ container ->addCompilerPass (new MetadataAwareNameConverterPass ());
41
43
}
42
44
}
Original file line number Diff line number Diff line change 18
18
use ApiPlatform \Core \Bridge \Symfony \Bundle \DependencyInjection \Compiler \DataProviderPass ;
19
19
use ApiPlatform \Core \Bridge \Symfony \Bundle \DependencyInjection \Compiler \ElasticsearchClientPass ;
20
20
use ApiPlatform \Core \Bridge \Symfony \Bundle \DependencyInjection \Compiler \FilterPass ;
21
+ use ApiPlatform \Core \Bridge \Symfony \Bundle \DependencyInjection \Compiler \MetadataAwareNameConverterPass ;
21
22
use PHPUnit \Framework \TestCase ;
22
23
use Prophecy \Argument ;
23
24
use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -34,6 +35,7 @@ public function testBuild()
34
35
$ containerProphecy ->addCompilerPass (Argument::type (AnnotationFilterPass::class))->shouldBeCalled ();
35
36
$ containerProphecy ->addCompilerPass (Argument::type (FilterPass::class))->shouldBeCalled ();
36
37
$ containerProphecy ->addCompilerPass (Argument::type (ElasticsearchClientPass::class))->shouldBeCalled ();
38
+ $ containerProphecy ->addCompilerPass (Argument::type (MetadataAwareNameConverterPass::class))->shouldBeCalled ();
37
39
38
40
$ bundle = new ApiPlatformBundle ();
39
41
$ bundle ->build ($ containerProphecy ->reveal ());
You can’t perform that action at this time.
0 commit comments