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

ExpressionLanguage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
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