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

api-platform / core / 7142557150

08 Dec 2023 02:28PM UTC coverage: 36.003% (-1.4%) from 37.36%
7142557150

push

github

web-flow
fix(jsonld): remove link to ApiDocumentation when doc is disabled (#6029)

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

2297 existing lines in 182 files now uncovered.

9992 of 27753 relevant lines covered (36.0%)

147.09 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\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\TestClientPass;
27
use ApiPlatform\Symfony\Bundle\DependencyInjection\Compiler\TestMercureHubPass;
28
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
29
use Symfony\Component\DependencyInjection\ContainerBuilder;
30
use Symfony\Component\HttpKernel\Bundle\Bundle;
31

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

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