| Current Path : /var/www/html/dvs/common/assets/ |
| Current File : /var/www/html/dvs/common/assets/FontAwesomeAsset.php |
<?php
/**
* @link http://www.myopensoft.net/
* @copyright Copyright (c) 2017 Opensoft Technologies Sdn Bhd
* @license http://www.myopensoft.net/license/
*/
namespace common\assets;
use yii\web\AssetBundle;
class FontAwesomeAsset extends AssetBundle
{
/**
* @inherit
*/
public $sourcePath = '@bower/font-awesome';
/**
* @inherit
*/
public $css = [
'css/font-awesome.min.css',
];
/**
* Initializes the bundle.
* Set publish options to copy only necessary files (in this case css and font folders)
* @codeCoverageIgnore
*/
public function init()
{
parent::init();
$this->publishOptions['beforeCopy'] = function ($from, $to) {
return preg_match('%(/|\\\\)(fonts|css)%', $from);
};
}
}