src/Eccube/Twig/Environment.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Eccube\Twig;
  13. /**
  14.  * @deprecated Twig\Environmentを利用してください。
  15.  * https://github.com/EC-CUBE/ec-cube/pull/4362 の修正で不要になったが、互換性のためにクラスは残す。
  16.  */
  17. class Environment extends \Twig_Environment
  18. {
  19.     /**
  20.      * @var \Twig_Environment
  21.      */
  22.     protected $twig;
  23.     public function __construct(\Twig_Environment $twig)
  24.     {
  25.         $this->twig $twig;
  26.     }
  27.     public function render($name, array $context = [])
  28.     {
  29.         return $this->twig->render($name$context);
  30.     }
  31. }