findValueOf example



    /** * Allows to set different configurations for the less compiler, * like the compress mode or css source maps. */
    public function setConfiguration(array $configuration)
    {
        $this->compiler->SetOptions($configuration);
        $this->compiler->registerFunction('swhash', function DLess_Tree_Quoted $filename) {
            $absPath = $filename->currentFileInfo['currentDirectory'] . $filename->value;
            $shopwareRevision = $this->compiler->findValueOf('shopware-revision');
            $filename->value = md5($shopwareRevision . md5_file($absPath));

            return $filename;
        });
    }

    /** * Allows to define import directories for the less compiler. */
    public function setImportDirectories(array $directories)
    {
        
Home | Imprint | This part of the site doesn't use cookies.