-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.php
More file actions
31 lines (26 loc) · 730 Bytes
/
App.php
File metadata and controls
31 lines (26 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace Webteractive\Devstack;
use Symfony\Component\Console\Application;
class App extends Application
{
private static $name = "MyApp";
private static $logo = <<<LOGO
__| | _____ _____| |_ __ _ ___| | __
/ _` |/ _ \ \ / / __| __/ _` |/ __| |/ /
| (_| | __/\ V /\__ \ || (_| | (__| <
\__,_|\___| \_/ |___/\__\__,_|\___|_|\_\
LOGO;
public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
{
$this->setName(static::$name);
$this->setVersion($version);
parent::__construct($name, $version);
}
/**
* @return string
*/
public function getHelp(): string
{
return static::$logo . "\n\n" . parent::getHelp();
}
}