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

api-platform / core / 15283185369

27 May 2025 06:43PM UTC coverage: 0.0% (-26.4%) from 26.397%
15283185369

Pull #7180

github

web-flow
Merge 9a6703d44 into c022b441b
Pull Request #7180: feat(deps): allow Elasticsearch v9

0 of 51334 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\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
    {
46
        parent::build($container);
×
47

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

© 2026 Coveralls, Inc