|
1
|
|
|
<?php namespace Arcanedev\LogViewer\Commands; |
|
2
|
|
|
|
|
3
|
|
|
use Arcanedev\LogViewer\Contracts\LogViewer as LogViewerContract; |
|
4
|
|
|
use Arcanedev\Support\Bases\Command as BaseCommand; |
|
5
|
|
|
|
|
6
|
|
|
/** |
|
7
|
|
|
* Class Command |
|
8
|
|
|
* |
|
9
|
|
|
* @package Arcanedev\LogViewer\Bases |
|
10
|
|
|
* @author ARCANEDEV <[email protected]> |
|
11
|
|
|
*/ |
|
12
|
|
|
abstract class Command extends BaseCommand |
|
13
|
|
|
{ |
|
14
|
|
|
/* ------------------------------------------------------------------------------------------------ |
|
15
|
|
|
| Properties |
|
16
|
|
|
| ------------------------------------------------------------------------------------------------ |
|
17
|
|
|
*/ |
|
18
|
|
|
/** @var \Arcanedev\LogViewer\Contracts\LogViewer */ |
|
19
|
|
|
protected $logViewer; |
|
20
|
|
|
|
|
21
|
|
|
/* ------------------------------------------------------------------------------------------------ |
|
22
|
|
|
| Constructor |
|
23
|
|
|
| ------------------------------------------------------------------------------------------------ |
|
24
|
|
|
*/ |
|
25
|
|
|
/** |
|
26
|
|
|
* Create the command instance. |
|
27
|
|
|
* |
|
28
|
|
|
* @param \Arcanedev\LogViewer\Contracts\LogViewer $logViewer |
|
29
|
|
|
*/ |
|
30
|
|
|
public function __construct(LogViewerContract $logViewer) |
|
31
|
|
|
{ |
|
32
|
|
|
parent::__construct(); |
|
33
|
|
|
|
|
34
|
|
|
$this->logViewer = $logViewer; |
|
35
|
|
|
} |
|
36
|
|
|
|
|
37
|
|
|
/* ------------------------------------------------------------------------------------------------ |
|
38
|
|
|
| Other Functions |
|
39
|
|
|
| ------------------------------------------------------------------------------------------------ |
|
40
|
|
|
*/ |
|
41
|
|
|
/** |
|
42
|
|
|
* Display LogViewer Logo and Copyrights. |
|
43
|
|
|
*/ |
|
44
|
|
|
protected function displayLogViewer() |
|
45
|
|
|
{ |
|
46
|
|
|
// LOGO |
|
47
|
|
|
$this->comment(' __ _ '); |
|
48
|
|
|
$this->comment(' / / ___ __ _/\ /(_) _____ _____ _ __ '); |
|
49
|
|
|
$this->comment(' / / / _ \ / _` \ \ / / |/ _ \ \ /\ / / _ \ \'__|'); |
|
50
|
|
|
$this->comment('/ /__| (_) | (_| |\ V /| | __/\ V V / __/ | '); |
|
51
|
|
|
$this->comment('\____/\___/ \__, | \_/ |_|\___| \_/\_/ \___|_| '); |
|
52
|
|
|
$this->comment(' |___/ '); |
|
53
|
|
|
$this->line(''); |
|
54
|
|
|
|
|
55
|
|
|
// Copyright |
|
56
|
|
|
$this->comment('Version ' . $this->logViewer->version() . ' - Created by ARCANEDEV' . chr(169)); |
|
57
|
|
|
$this->line(''); |
|
58
|
|
|
} |
|
59
|
|
|
} |
|
60
|
|
|
|