1<?php 2 3/* 4 * This file is part of Twig. 5 * 6 * (c) Fabien Potencier 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace Twig\Extension; 13 14use Twig\Environment; 15 16/** 17 * Enables usage of the deprecated Twig\Extension\AbstractExtension::initRuntime() method. 18 * 19 * Explicitly implement this interface if you really need to implement the 20 * deprecated initRuntime() method in your extensions. 21 * 22 * @author Fabien Potencier <fabien@symfony.com> 23 * 24 * @deprecated since Twig 2.7, to be removed in 3.0 25 */ 26interface InitRuntimeInterface 27{ 28 /** 29 * Initializes the runtime environment. 30 * 31 * This is where you can load some file that contains filter functions for instance. 32 */ 33 public function initRuntime(Environment $environment); 34} 35 36class_alias('Twig\Extension\InitRuntimeInterface', 'Twig_Extension_InitRuntimeInterface'); 37