mirror of
https://github.com/OPSnet/Logchecker.git
synced 2026-01-16 18:04:27 -05:00
25 lines
587 B
PHP
25 lines
587 B
PHP
<?php
|
|
|
|
namespace OrpheusNET\Logchecker;
|
|
|
|
use Symfony\Component\Console\Application;
|
|
|
|
class LogcheckerConsole extends Application
|
|
{
|
|
public function __construct()
|
|
{
|
|
$composer_config = json_decode(file_get_contents(__DIR__ . '/../composer.json'), true);
|
|
$version = $composer_config['version'];
|
|
|
|
parent::__construct('Logchecker by Orpheus', $version);
|
|
|
|
$analyze_command = new Command\AnalyzeCommand();
|
|
|
|
$this->addCommands([
|
|
$analyze_command
|
|
]);
|
|
|
|
$this->setDefaultCommand($analyze_command->getName(), true);
|
|
}
|
|
}
|