AssetConverterInterface.php 698 Bytes
Newer Older
Qiang Xue committed
1 2 3 4 5 6 7 8 9 10
<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\web;

/**
11
 * The AssetConverterInterface must be implemented by asset converter classes.
Qiang Xue committed
12
 *
Qiang Xue committed
13 14 15
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
16
interface AssetConverterInterface
Qiang Xue committed
17
{
18 19
    /**
     * Converts a given asset file into a CSS or JS file.
20 21
     * @param string $asset the asset file path, relative to $basePath
     * @param string $basePath the directory the $asset is relative to.
22 23 24
     * @return string the converted asset file path, relative to $basePath.
     */
    public function convert($asset, $basePath);
Zander Baldwin committed
25
}