VclTemplateLocatorInterface.php 525 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\PageCache\Model;
  7. use Magento\PageCache\Exception\UnsupportedVarnishVersion;
  8. /**
  9. * Vcl template locator interface
  10. *
  11. * @api
  12. * @since 100.2.0
  13. */
  14. interface VclTemplateLocatorInterface
  15. {
  16. /**
  17. * Get Varnish Vcl template
  18. *
  19. * @param int $version
  20. * @return string
  21. * @throws UnsupportedVarnishVersion
  22. * @since 100.2.0
  23. */
  24. public function getTemplate($version);
  25. }