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\Loader; 13 14/** 15 * Adds an exists() method for loaders. 16 * 17 * @author Florin Patan <florinpatan@gmail.com> 18 * 19 * @deprecated since 1.12 (to be removed in 3.0) 20 */ 21interface ExistsLoaderInterface 22{ 23 /** 24 * Check if we have the source code of a template, given its name. 25 * 26 * @param string $name The name of the template to check if we can load 27 * 28 * @return bool If the template source code is handled by this loader or not 29 */ 30 public function exists($name); 31} 32 33class_alias('Twig\Loader\ExistsLoaderInterface', 'Twig_ExistsLoaderInterface'); 34