Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

AssetConverterInterface.php 698B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\web;
  8. /**
  9. * The AssetConverterInterface must be implemented by asset converter classes.
  10. *
  11. * @author Qiang Xue <qiang.xue@gmail.com>
  12. * @since 2.0
  13. */
  14. interface AssetConverterInterface
  15. {
  16. /**
  17. * Converts a given asset file into a CSS or JS file.
  18. * @param string $asset the asset file path, relative to $basePath
  19. * @param string $basePath the directory the $asset is relative to.
  20. * @return string the converted asset file path, relative to $basePath.
  21. */
  22. public function convert($asset, $basePath);
  23. }