Passed
Push — main ( c0e9c6...078a98 )
by Axel
04:57
created

Kernel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Zikula package.
7
 *
8
 * Copyright Zikula - https://ziku.la/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace App;
15
16
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
17
use Symfony\Component\HttpKernel\Kernel as SymfonyKernel;
18
19
// Defines for access levels
20
define('ACCESS_INVALID', -1);
21
define('ACCESS_NONE', 0);
22
define('ACCESS_OVERVIEW', 100);
23
define('ACCESS_READ', 200);
24
define('ACCESS_COMMENT', 300);
25
define('ACCESS_MODERATE', 400);
26
define('ACCESS_EDIT', 500);
27
define('ACCESS_ADD', 600);
28
define('ACCESS_DELETE', 700);
29
define('ACCESS_ADMIN', 800);
30
31
class Kernel extends SymfonyKernel
32
{
33
    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 App\Kernel.
Loading history...
34
35
    public function getProjectDir(): string
36
    {
37
        return dirname(__DIR__);
38
    }
39
}
40