summaryrefslogtreecommitdiffstats
path: root/library/Reporting/Cli/Command.php
blob: a89f77b76541c213555599b2473076001b60b10b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// Icinga Reporting | (c) 2018 Icinga GmbH | GPLv2

namespace Icinga\Module\Reporting\Cli;

use Icinga\Application\Icinga;
use Icinga\Application\Version;
use Icinga\Module\Reporting\Database;

class Command extends \Icinga\Cli\Command
{
    use Database;

    // 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();
        }
    }
}