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

api-platform / core / 15040977736

15 May 2025 09:02AM UTC coverage: 21.754% (+13.3%) from 8.423%
15040977736

Pull #6960

github

web-flow
Merge 7a7a13526 into 1862d03b7
Pull Request #6960: feat(json-schema): mutualize json schema between formats

320 of 460 new or added lines in 24 files covered. (69.57%)

1863 existing lines in 109 files now uncovered.

11069 of 50882 relevant lines covered (21.75%)

29.49 hits per line

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

0.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\GraphQlMutationResolverPass;
23
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\GraphQlQueryResolverPass;
24
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\GraphQlResolverPass;
25
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\GraphQlTypePass;
26
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\MetadataAwareNameConverterPass;
27
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\SerializerMappingLoaderPass;
28
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\TestClientPass;
29
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\TestMercureHubPass;
30
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
31
use Symfony\Component\DependencyInjection\ContainerBuilder;
32
use Symfony\Component\HttpKernel\Bundle\Bundle;
33

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

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