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

Environment::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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