File: LessParser.php

package info (click to toggle)
icingaweb2 2.11.4-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 33,368 kB
  • sloc: php: 208,116; javascript: 4,787; sql: 307; sh: 78; xml: 74; makefile: 35
file content (19 lines) | stat: -rw-r--r-- 322 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/* Icinga Web 2 | (c) 2021 Icinga GmbH | GPLv2+ */

namespace Icinga\Util;

use Icinga\Less\Visitor;
use lessc;

require_once 'lessphp/lessc.inc.php';

class LessParser extends lessc
{
    public $importDisabled;

    public function __construct()
    {
        $this->setOption('plugins', [new Visitor()]);
    }
}