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

ICanBoogie / bind-render / 12723732121

11 Jan 2025 11:13AM UTC coverage: 0.0% (-35.3%) from 35.294%
12723732121

push

github

olvlvl
Require PHP 8.4+

0 of 17 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
/lib/CompilerPass.php
1
<?php
2

3
namespace ICanBoogie\Binding\Render;
4

5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7

8
final class CompilerPass implements CompilerPassInterface
9
{
10
    public const string PARAMETER_ENGINE_BY_EXTENSION = 'render.engine_by_extension';
11
    public const string PARAMETER_EXTENSIONS = 'render.extensions';
12
    public const string TAG = 'render.extension';
13
    public const string TAG_KEY = 'extension';
14

15
    public function process(ContainerBuilder $container): void
16
    {
17
        /**
18
         * @var array<string, string> $extensions
19
         *     Where _key_ is an extension and _value_ a service id.
20
         */
21
        $extensions = [];
×
22

23
        foreach ($container->findTaggedServiceIds(self::TAG) as $id => $tags) {
×
24
            foreach ($tags as $tag) {
×
25
                $extensions[$tag[self::TAG_KEY]] = $id;
×
26
            }
27
        }
28

29
        $container->setParameter(self::PARAMETER_ENGINE_BY_EXTENSION, $extensions);
×
30
        $container->setParameter(self::PARAMETER_EXTENSIONS, array_keys($extensions));
×
31
    }
32
}
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