File: extendStyles.php

package info (click to toggle)
icingaweb2-module-incubator 0.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,224 kB
  • sloc: php: 20,801; javascript: 118; sh: 105; makefile: 15
file content (21 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php /** @noinspection PhpMissingParentConstructorInspection */

namespace Icinga\Module\Incubator;

use Icinga\Application\Icinga;
use Icinga\Web\StyleSheet;

class Styles extends StyleSheet
{
    public function __construct()
    {
        $pubPath = Icinga::app()->getBaseDir('public');
        $slashes = \substr_count($pubPath, '/');
        $prefix = \str_repeat('/..', $slashes) . __DIR__;
        $files = ["$prefix/public/css/combined.less"];

        foreach ($files as $file) {
            self::$lessFiles[] = $file;
        }
    }
}