• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

api-platform / core / 19799301771

30 Nov 2025 01:04PM UTC coverage: 25.229% (-0.03%) from 25.257%
19799301771

push

github

web-flow
fix(metadata): repeatable attribute mutators (#7542)

14557 of 57700 relevant lines covered (25.23%)

28.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Symfony/Bundle/ApiPlatformBundle.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Symfony\Bundle;
15

16
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\AttributeFilterPass;
17
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\AttributeResourcePass;
18
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\AuthenticatorManagerPass;
19
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\DataProviderPass;
20
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\ElasticsearchClientPass;
21
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\FilterPass;
22
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\GraphQlResolverPass;
23
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\GraphQlTypePass;
24
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\MetadataAwareNameConverterPass;
25
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\MutatorPass;
26
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\SerializerMappingLoaderPass;
27
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\TestClientPass;
28
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\TestMercureHubPass;
29
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
30
use Symfony\Component\DependencyInjection\ContainerBuilder;
31
use Symfony\Component\HttpKernel\Bundle\Bundle;
32

33
/**
34
 * The Symfony bundle.
35
 *
36
 * @author Kévin Dunglas <dunglas@gmail.com>
37
 */
38
final class ApiPlatformBundle extends Bundle
39
{
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function build(ContainerBuilder $container): void
44
    {
45
        parent::build($container);
10✔
46

47
        // TODO: remove in 5.x
48
        $container->addCompilerPass(new DataProviderPass());
10✔
49
        // Run the compiler pass before the {@see ResolveInstanceofConditionalsPass} to allow autoconfiguration of generated filter definitions.
50
        $container->addCompilerPass(new AttributeFilterPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 101);
10✔
51
        $container->addCompilerPass(new AttributeResourcePass());
10✔
52
        $container->addCompilerPass(new FilterPass());
10✔
53
        $container->addCompilerPass(new ElasticsearchClientPass());
10✔
54
        $container->addCompilerPass(new GraphQlTypePass());
10✔
55
        $container->addCompilerPass(new GraphQlResolverPass());
10✔
56
        $container->addCompilerPass(new MetadataAwareNameConverterPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 100);
10✔
57
        $container->addCompilerPass(new TestClientPass());
10✔
58
        $container->addCompilerPass(new TestMercureHubPass());
10✔
59
        $container->addCompilerPass(new AuthenticatorManagerPass());
10✔
60
        $container->addCompilerPass(new SerializerMappingLoaderPass());
10✔
61
        $container->addCompilerPass(new MutatorPass());
10✔
62
    }
63
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc