Passed
Push — main ( 756af1...e120fa )
by Chema
03:55 queued 01:19
created

Kernel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 9
ccs 0
cts 4
cp 0
rs 10
c 2
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A gacelaConfigFn() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpLightning;
6
7
use Gacela\Framework\Bootstrap\GacelaConfig;
8
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
9
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
10
11
final class Kernel extends BaseKernel
12
{
13
    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 PhpLightning\Kernel.
Loading history...
14
15
    public function gacelaConfigFn(): callable
16
    {
17
        return static function (GacelaConfig $config): void {
18
            $config->addAppConfig('lightning-config.dist.php', 'lightning-config.php');
19
            $config->setFileCacheEnabled(true);
20
        };
21
    }
22
}
23