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

Deuchnord / no-ai-bundle / 19969813633

05 Dec 2025 04:50PM UTC coverage: 57.407%. Remained the same
19969813633

push

github

Deuchnord
Add Symfony Tests

31 of 54 relevant lines covered (57.41%)

23.48 hits per line

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

0.0
/src/NoAiBundle.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the Deuchnord\NoAiBundle bundle.
7
 *
8
 * (c) Jérôme Deuchnord <jerome@deuchnord.fr>
9
 *
10
 * Licensed under the EUPL-1.2-or-later
11
 */
12

13
namespace Deuchnord\NoAiBundle;
14

15
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
18
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
19

20
final class NoAiBundle extends AbstractBundle
21
{
22
    public function configure(DefinitionConfigurator $definition): void
×
23
    {
24
        // @phpstan-ignore-next-line
25
        $definition->rootNode()
×
26
            ->children()
×
27
            ->booleanNode('enabled')
×
28
                ->info('Set this to false to not block LLM crawlers.')
×
29
                ->defaultTrue()
×
30
            ->end()
×
31
        ;
×
32
    }
33

34
    /**
35
     * @param array<string, mixed> $config
36
     */
37
    public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
×
38
    {
39
        $container->import(__DIR__.'/Resources/config/services.php');
×
40
    }
41
}
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