1 | <?php |
||
16 | class Partisan extends Application |
||
17 | { |
||
18 | /** |
||
19 | * Namespace for commands |
||
20 | */ |
||
21 | const COMMANDS_NAMESPACE = '\App\Console\Commands'; |
||
22 | |||
23 | /** |
||
24 | * @var Container |
||
25 | */ |
||
26 | public $container; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $logo = ' |
||
32 | ____ __ _ |
||
33 | / __ \____ ______/ /_(_)________ _____ |
||
34 | / /_/ / __ `/ ___/ __/ / ___/ __ `/ __ \ |
||
35 | / ____/ /_/ / / / /_/ (__ ) /_/ / / / / |
||
36 | /_/ \__,_/_/ \__/_/____/\__,_/_/ /_/ |
||
37 | '; |
||
38 | |||
39 | /** |
||
40 | * Partisan constructor. |
||
41 | * |
||
42 | * @param Container $container |
||
43 | * @param string $name The name of the application |
||
44 | * @param string $version The version of the application |
||
45 | * @throws \Exception |
||
46 | */ |
||
47 | public function __construct(Container $container, $name = 'UNKNOWN', $version = 'UNKNOWN') |
||
53 | |||
54 | /** |
||
55 | * Register commands |
||
56 | */ |
||
57 | public function registerCommands() |
||
76 | |||
77 | /** |
||
78 | * Returns the long version of the application. |
||
79 | * |
||
80 | * @return string The long application version |
||
81 | * |
||
82 | * @api |
||
83 | */ |
||
84 | public function getLongVersion() |
||
92 | } |
||
93 |