File: run.php

package info (click to toggle)
icingaweb2-module-incubator 0.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,208 kB
  • sloc: php: 20,813; javascript: 118; sh: 105; makefile: 15
file content (14 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

use Icinga\Module\Incubator\Styles;

// We extend Less files shipped per default
if (isset($_SERVER['REQUEST_URI'])
    && preg_match('#/css/icinga(?:\.min)?\.css#', $_SERVER['REQUEST_URI'])
    && ! class_exists(__NAMESPACE__ . '\\Styles')) {
    require __DIR__ . '/extendStyles.php';
    $styles = new Styles();
    return;
}

require_once __DIR__ . '/vendor/autoload.php';