Completed
Push — vaddy ( deac5b )
by Kiyotaka
05:32
created

Environment   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A render() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.ec-cube.co.jp/
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 Eccube\Twig;
15
16
/**
17
 * @deprecated Twig\Environmentを利用してください。
18
 * https://github.com/EC-CUBE/ec-cube/pull/4362 の修正で不要になったが、互換性のためにクラスは残す。
19
 */
20
class Environment extends \Twig_Environment
0 ignored issues
show
Deprecated Code introduced by
The class Twig_Environment has been deprecated with message: since Twig 2.7, use "Twig\Environment" instead

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
21
{
22
    /**
23
     * @var \Twig_Environment
24
     */
25
    protected $twig;
26
27
    public function __construct(\Twig_Environment $twig)
28
    {
29
        $this->twig = $twig;
30
    }
31
32
    public function render($name, array $context = [])
33
    {
34
        return $this->twig->render($name, $context);
35
    }
36
}
37