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

api-platform / core / 15250451308

26 May 2025 09:29AM UTC coverage: 26.388% (+0.008%) from 26.38%
15250451308

push

github

soyuka
fix(openapi): `example` and `default` with nullable value not being shown

0 of 3 new or added lines in 2 files covered. (0.0%)

11122 existing lines in 371 files now uncovered.

13009 of 49299 relevant lines covered (26.39%)

44.73 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\AuthenticatorManagerPass;
18
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\DataProviderPass;
19
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\ElasticsearchClientPass;
20
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\FilterPass;
21
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\GraphQlMutationResolverPass;
22
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\GraphQlQueryResolverPass;
23
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\GraphQlResolverPass;
24
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\GraphQlTypePass;
25
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\MetadataAwareNameConverterPass;
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
    {
UNCOV
45
        parent::build($container);
4✔
46

UNCOV
47
        $container->addCompilerPass(new DataProviderPass());
4✔
48
        // Run the compiler pass before the {@see ResolveInstanceofConditionalsPass} to allow autoconfiguration of generated filter definitions.
UNCOV
49
        $container->addCompilerPass(new AttributeFilterPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 101);
4✔
UNCOV
50
        $container->addCompilerPass(new FilterPass());
4✔
UNCOV
51
        $container->addCompilerPass(new ElasticsearchClientPass());
4✔
UNCOV
52
        $container->addCompilerPass(new GraphQlTypePass());
4✔
53
        // These two are deprecated
UNCOV
54
        $container->addCompilerPass(new GraphQlQueryResolverPass());
4✔
UNCOV
55
        $container->addCompilerPass(new GraphQlMutationResolverPass());
4✔
56
        // We can use this one only in 4.0
UNCOV
57
        $container->addCompilerPass(new GraphQlResolverPass());
4✔
UNCOV
58
        $container->addCompilerPass(new MetadataAwareNameConverterPass());
4✔
UNCOV
59
        $container->addCompilerPass(new TestClientPass());
4✔
UNCOV
60
        $container->addCompilerPass(new TestMercureHubPass());
4✔
UNCOV
61
        $container->addCompilerPass(new AuthenticatorManagerPass());
4✔
UNCOV
62
        $container->addCompilerPass(new SerializerMappingLoaderPass());
4✔
63
    }
64
}
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