Phrozn\Processor\Less::getEnvironment PHP Method

getEnvironment() protected method

Get LESS compiler (if undefined, set it with path for @import directives)
protected getEnvironment ( boolean $reset = false )
$reset boolean
    protected function getEnvironment($reset = false)
    {
        if ($reset === true || null === $this->lessc) {
            $this->lessc = new \lessc();
            $this->lessc->addImportDir($this->getConfigFor('phr_template_dir'));
        }
        return $this->lessc;
    }