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

api-platform / core / 15133993414

20 May 2025 09:30AM UTC coverage: 26.313% (-1.2%) from 27.493%
15133993414

Pull #7161

github

web-flow
Merge e2c03d45f into 5459ba375
Pull Request #7161: fix(metadata): infer parameter string type from schema

0 of 2 new or added lines in 1 file covered. (0.0%)

11019 existing lines in 363 files now uncovered.

12898 of 49018 relevant lines covered (26.31%)

34.33 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);
2✔
46

UNCOV
47
        $container->addCompilerPass(new DataProviderPass());
2✔
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);
2✔
UNCOV
50
        $container->addCompilerPass(new FilterPass());
2✔
UNCOV
51
        $container->addCompilerPass(new ElasticsearchClientPass());
2✔
UNCOV
52
        $container->addCompilerPass(new GraphQlTypePass());
2✔
53
        // These two are deprecated
UNCOV
54
        $container->addCompilerPass(new GraphQlQueryResolverPass());
2✔
UNCOV
55
        $container->addCompilerPass(new GraphQlMutationResolverPass());
2✔
56
        // We can use this one only in 4.0
UNCOV
57
        $container->addCompilerPass(new GraphQlResolverPass());
2✔
UNCOV
58
        $container->addCompilerPass(new MetadataAwareNameConverterPass());
2✔
UNCOV
59
        $container->addCompilerPass(new TestClientPass());
2✔
UNCOV
60
        $container->addCompilerPass(new TestMercureHubPass());
2✔
UNCOV
61
        $container->addCompilerPass(new AuthenticatorManagerPass());
2✔
UNCOV
62
        $container->addCompilerPass(new SerializerMappingLoaderPass());
2✔
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

© 2025 Coveralls, Inc