Passed
Push — master ( 99be9d...2413ea )
by Pol
02:05
created

Kernel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 13
c 1
b 0
f 0
dl 0
loc 29
ccs 0
cts 7
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A configureContainer() 0 9 1
A configureRoutes() 0 4 2
A registerBundles() 0 5 1
1
<?php
2
3
/**
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types=1);
9
10
namespace loophp\GoUnflocYourselfBundle\Tests\Fixtures\App;
11
12
use Foo\TestBundle\FooTestBundle;
0 ignored issues
show
Bug introduced by
The type Foo\TestBundle\FooTestBundle was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
use loophp\GoUnflocYourselfBundle\GoUnflocYourselfBundle;
14
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
15
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
16
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
17
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
18
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
19
20
final class Kernel extends BaseKernel
21
{
22
    use MicroKernelTrait;
0 ignored issues
show
Bug introduced by
The trait Symfony\Bundle\Framework...Kernel\MicroKernelTrait requires the property $instanceof which is not provided by loophp\GoUnflocYourselfB...sts\Fixtures\App\Kernel.
Loading history...
23
24
    public function registerBundles()
25
    {
26
        return [
27
            new GoUnflocYourselfBundle(),
28
            new FrameworkBundle(),
29
        ];
30
    }
31
32
    protected function configureContainer(ContainerConfigurator $container): void
33
    {
34
        $container->extension(
35
            'framework',
36
            [
37
                'secret' => 'secret',
38
                'test' => true,
39
                'router' => ['utf8' => true],
40
                'secrets' => false,
41
            ]
42
        );
43
    }
44
45
    protected function configureRoutes(RoutingConfigurator $routes): void
46
    {
47
        foreach (glob(__DIR__ . '/config/*.yaml') as $file) {
48
            $routes->import($file);
49
        }
50
    }
51
}
52