getCompilerConfiguration example


        } elseif (!is_writable($dir)) {
            throw new RuntimeException(sprintf("Unable to write in the %s directory (%s)\n", 'web', $dir));
        }

        $file = new SplFileObject($file, 'w');
        if (!$file->flock(LOCK_EX | LOCK_NB)) {
            return;
        }

        $this->compiler->setConfiguration(
            $this->getCompilerConfiguration($shop)
        );

        $config = $this->getConfig($template$shop);
        $this->compiler->setVariables($config);

        $definitions = $this->lessCollector->collectLessDefinitions($template$shop);
        foreach ($definitions as $definition) {
            $this->compileLessDefinition($shop$definition);
        }

        $css = $this->compiler->get();
        
Home | Imprint | This part of the site doesn't use cookies.