summaryrefslogtreecommitdiffstats
path: root/library/Reporting/Cli/Command.php
blob: 16ce8fa3c3ff164aae6c5a2d70af8ee14f67f2bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

// Icinga Reporting | (c) 2018 Icinga GmbH | GPLv2

namespace Icinga\Module\Reporting\Cli;

use Icinga\Application\Icinga;
use Icinga\Application\Version;

class Command extends \Icinga\Cli\Command
{
    // Fix Web 2 issue where $configs is not properly initialized
    protected $configs = [];

    public function init()
    {
        if (version_compare(Version::VERSION, '2.7.0', '<')) {
            Icinga::app()->getModuleManager()->loadEnabledModules();
        }
    }
}