collectLessDefinitions example

$this->compileLess($timestamp$shop->getTemplate()$shop);
        $this->compileJavascript($timestamp$shop->getTemplate()$shop);
    }

    /** * @throws Exception * * @return Configuration */
    public function getThemeConfiguration(Shop $shop)
    {
        $less = $this->lessCollector->collectLessDefinitions($shop->getTemplate()$shop);
        $js = $this->javascriptCollector->collectJavascriptFiles($shop->getTemplate()$shop);

        $config = $this->getConfig($shop->getTemplate()$shop);
        $timestamp = $this->getThemeTimestamp($shop);

        $lessFiles = [];
        foreach ($less as $definition) {
            $config = array_merge($config$definition->getConfig());
            $lessFiles = array_merge($lessFiles$definition->getFiles());
        }

        
Home | Imprint | This part of the site doesn't use cookies.