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

heimrichhannot / contao-encore-bundle / 4628948419

pending completion
4628948419

push

github

Thomas Körner
another fix for layout loading on error pages

2 of 2 new or added lines in 1 file covered. (100.0%)

623 of 830 relevant lines covered (75.06%)

1.96 hits per line

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

0.0
/src/DependencyInjection/EncoreConfigCompilerPass.php
1
<?php
2

3
/*
4
 * Copyright (c) 2022 Heimrich & Hannot GmbH
5
 *
6
 * @license LGPL-3.0-or-later
7
 */
8

9
namespace HeimrichHannot\EncoreBundle\DependencyInjection;
10

11
use HeimrichHannot\EncoreBundle\Collection\ExtensionCollection;
12
use HeimrichHannot\EncoreContracts\EncoreExtensionInterface;
13
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Symfony\Component\DependencyInjection\Reference;
16

17
class EncoreConfigCompilerPass implements CompilerPassInterface
18
{
19
    public function process(ContainerBuilder $container)
20
    {
21
        if (!$container->has(ExtensionCollection::class)) {
×
22
            return;
×
23
        }
24

25
        $collectionDefinition = $container->findDefinition(ExtensionCollection::class);
×
26

27
        /** @var class-string<EncoreExtensionInterface> $id */
28
        foreach ($container->findTaggedServiceIds('huh.encore.extension') as $id => $tags) {
×
29
            $collectionDefinition->addMethodCall('addExtension', [new Reference($id)]);
×
30
        }
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

© 2025 Coveralls, Inc