ExistsLoaderInterface.php 692 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2009 Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. /**
  11. * Adds an exists() method for loaders.
  12. *
  13. * @author Florin Patan <florinpatan@gmail.com>
  14. *
  15. * @deprecated since 1.12 (to be removed in 3.0)
  16. */
  17. interface Twig_ExistsLoaderInterface
  18. {
  19. /**
  20. * Check if we have the source code of a template, given its name.
  21. *
  22. * @param string $name The name of the template to check if we can load
  23. *
  24. * @return bool If the template source code is handled by this loader or not
  25. */
  26. public function exists($name);
  27. }