Your IP : 216.73.216.79


Current Path : /var/www/html/dynaweb.blunetdev.com/common/assets/
Upload File :
Current File : /var/www/html/dynaweb.blunetdev.com/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);
        };
    }
}