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

api-platform / core / 18223414080

03 Oct 2025 01:18PM UTC coverage: 0.0% (-22.0%) from 21.956%
18223414080

Pull #7397

github

web-flow
Merge 69d085182 into 0b8237918
Pull Request #7397: fix(jsonschema/jsonld): make `@id` and `@type` properties required only in the JSON-LD schema for output

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

12304 existing lines in 405 files now uncovered.

0 of 53965 relevant lines covered (0.0%)

0.0 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\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
    {
UNCOV
45
        parent::build($container);
×
46

47
        // TODO: remove in 5.x
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());
×
UNCOV
55
        $container->addCompilerPass(new GraphQlResolverPass());
×
UNCOV
56
        $container->addCompilerPass(new MetadataAwareNameConverterPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 100);
×
UNCOV
57
        $container->addCompilerPass(new TestClientPass());
×
UNCOV
58
        $container->addCompilerPass(new TestMercureHubPass());
×
UNCOV
59
        $container->addCompilerPass(new AuthenticatorManagerPass());
×
UNCOV
60
        $container->addCompilerPass(new SerializerMappingLoaderPass());
×
UNCOV
61
        $container->addCompilerPass(new MutatorPass());
×
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