MinifierInterface.php 725 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Template\Html;
  7. /**
  8. * HTML minifier
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface MinifierInterface
  14. {
  15. /**
  16. * Return path to minified template file, or minify if file not exist
  17. *
  18. * @param string $file
  19. * @return string
  20. */
  21. public function getMinified($file);
  22. /**
  23. * Return path to minified template file
  24. *
  25. * @param string $file
  26. * @return string
  27. */
  28. public function getPathToMinified($file);
  29. /**
  30. * Minify template file
  31. *
  32. * @param string $file
  33. * @return void
  34. */
  35. public function minify($file);
  36. }