1 | <?php |
||
9 | class Partisan extends Application |
||
10 | { |
||
11 | /** |
||
12 | * Namespace for commands |
||
13 | */ |
||
14 | const COMMANDS_NAMESPACE = '\App\Console\Commands'; |
||
15 | |||
16 | /** |
||
17 | * @var Container |
||
18 | */ |
||
19 | public $container; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $logo = ' |
||
25 | ____ __ _ |
||
26 | / __ \____ ______/ /_(_)________ _____ |
||
27 | / /_/ / __ `/ ___/ __/ / ___/ __ `/ __ \ |
||
28 | / ____/ /_/ / / / /_/ (__ ) /_/ / / / / |
||
29 | /_/ \__,_/_/ \__/_/____/\__,_/_/ /_/ |
||
30 | '; |
||
31 | |||
32 | /** |
||
33 | * Partisan constructor. |
||
34 | * |
||
35 | * @param Container $container |
||
36 | * @param string $name The name of the application |
||
37 | * @param string $version The version of the application |
||
38 | * @throws \Exception |
||
39 | */ |
||
40 | public function __construct(Container $container, $name = 'UNKNOWN', $version = 'UNKNOWN') |
||
46 | |||
47 | /** |
||
48 | * Register commands |
||
49 | */ |
||
50 | public function registerCommands() |
||
69 | |||
70 | /** |
||
71 | * Returns the long version of the application. |
||
72 | * |
||
73 | * @return string The long application version |
||
74 | * |
||
75 | * @api |
||
76 | */ |
||
77 | public function getLongVersion() |
||
85 | } |
||
86 |