Completed
Push — ezp-31088-refactor-content-mod... ( ab3ba3...3726c8 )
by
unknown
14:09
created

ExpressionLanguage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Publish\Core\MVC\Symfony\ExpressionLanguage;
10
11
use Psr\Cache\CacheItemPoolInterface;
12
use Symfony\Component\ExpressionLanguage\ExpressionLanguage as BaseExpressionLanguage;
13
14
final class ExpressionLanguage extends BaseExpressionLanguage
15
{
16
    public function __construct(
17
        CacheItemPoolInterface $cache = null,
18
        array $providers = []
19
    ) {
20
        array_unshift($providers, new TwigVariableProviderExtension());
21
22
        parent::__construct($cache, $providers);
23
    }
24
}
25