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

Kernel::gacelaConfigFn()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 2
rs 10
c 1
b 0
f 0
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