Loader.php 795 B

12345678910111213141516171819202122232425262728293031323334353637
  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 Psr\Log\LoggerInterface;
  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. /**
  20. * @var LoggerInterface|null
  21. */
  22. protected $logger;
  23. /**
  24. * Sets the debug logger to use for this loader.
  25. *
  26. * @param LoggerInterface $logger A logger instance
  27. */
  28. public function setLogger(LoggerInterface $logger)
  29. {
  30. $this->logger = $logger;
  31. }
  32. }