Completed
Push — master ( 06e70d...2d152a )
by Peter
03:59
created

Application::getHelp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This software package is licensed under AGPL, Commercial license.
5
 *
6
 * @package maslosoft/sitcom
7
 * @licence AGPL, Commercial
8
 * @copyright Copyright (c) Piotr Masełkowski <[email protected]>
9
 * @copyright Copyright (c) Maslosoft
10
 * @link http://maslosoft.com/sitcom/
11
 */
12
13
namespace Maslosoft\Sitcom\Application;
14
15
use Maslosoft\Signals\Signal;
16
use Maslosoft\Sitcom\Command;
17
use Maslosoft\Sitcom\Commands\BuildCommand;
18
use Maslosoft\Sitcom\Helpers\CommandWrapper;
19
use Maslosoft\Sitcom\Sitcom;
20
use Symfony\Component\Console\Application as ConsoleApplication;
21
22
/**
23
 * Application
24
 *
25
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
26
 */
27
class Application extends ConsoleApplication
28
{
29
30
	const Logo = <<<LOGO
31
   _____ _ __
32
  / ___/(_) /__________  ____ ___
33
  \__ \/ / __/ ___/ __ \/ __ `__ \
34
 ___/ / / /_/ /__/ /_/ / / / / / /
35
/____/_/\__/\___/\____/_/ /_/ /_/
36
37
38
LOGO;
39
40
	public function __construct()
41
	{
42
		$sitcom = new Sitcom;
43
		parent::__construct('Sitcom', $sitcom->getVersion());
44
		$this->add(new BuildCommand());
45
		$sitcom->addCommands($this);
46
	}
47
48
	public function getHelp()
49
	{
50
		return self::Logo . parent::getHelp();
51
	}
52
53
}
54