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

onmoon / openapi-server-bundle / 15881876638

25 Jun 2025 04:28PM UTC coverage: 80.585% (-0.5%) from 81.095%
15881876638

Pull #196

github

web-flow
Merge 90ce8070d into c35fba5f2
Pull Request #196: Fix minimum versions install

9 of 29 new or added lines in 5 files covered. (31.03%)

44 existing lines in 12 files now uncovered.

1378 of 1710 relevant lines covered (80.58%)

3.8 hits per line

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

87.5
/src/DependencyInjection/CompilerPass.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace OnMoon\OpenApiServerBundle\DependencyInjection;
6

7
use OnMoon\OpenApiServerBundle\Controller\ApiController;
8
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\DependencyInjection\Reference;
11

12
use function array_keys;
13

14
final class CompilerPass implements CompilerPassInterface
15
{
16
    private string $tag;
17

18
    public function __construct(string $tag)
19
    {
20
        $this->tag = $tag;
2✔
21
    }
22

23
    public function process(ContainerBuilder $container): void
24
    {
25
        if (! $container->has(ApiController::class)) {
1✔
UNCOV
26
            return;
×
27
        }
28

29
        $definition     = $container->findDefinition(ApiController::class);
1✔
30
        $taggedServices = $container->findTaggedServiceIds($this->tag);
1✔
31

32
        foreach (array_keys($taggedServices) as $id) {
1✔
33
            $definition->addMethodCall('setApiLoader', [new Reference($id)]);
1✔
34

35
            break;
1✔
36
        }
37
    }
38
}
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