Loader.php 946 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2010 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. * Exception thrown when an error occurs during template loading.
  12. *
  13. * Automatic template information guessing is always turned off as
  14. * if a template cannot be loaded, there is nothing to guess.
  15. * However, when a template is loaded from another one, then, we need
  16. * to find the current context and this is automatically done by
  17. * Twig_Template::displayWithErrorHandling().
  18. *
  19. * This strategy makes Twig_Environment::resolveTemplate() much faster.
  20. *
  21. * @author Fabien Potencier <fabien@symfony.com>
  22. */
  23. class Twig_Error_Loader extends Twig_Error
  24. {
  25. public function __construct($message, $lineno = -1, $filename = null, Exception $previous = null)
  26. {
  27. parent::__construct($message, false, false, $previous);
  28. }
  29. }