Loader.php 783 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Templating\Loader;
  11. use Symfony\Component\Templating\DebuggerInterface;
  12. /**
  13. * Loader is the base class for all template loader classes.
  14. *
  15. * @author Fabien Potencier <fabien@symfony.com>
  16. */
  17. abstract class Loader implements LoaderInterface
  18. {
  19. protected $debugger;
  20. /**
  21. * Sets the debugger to use for this loader.
  22. *
  23. * @param DebuggerInterface $debugger A debugger instance
  24. */
  25. public function setDebugger(DebuggerInterface $debugger)
  26. {
  27. $this->debugger = $debugger;
  28. }
  29. }