-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhellfire.php
More file actions
executable file
·48 lines (34 loc) · 1.24 KB
/
hellfire.php
File metadata and controls
executable file
·48 lines (34 loc) · 1.24 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/php
<?php
namespace Coff\Hellfire;
use Coff\Hellfire\Application\HellfireApplication;
use Coff\Hellfire\Command\AirIntakeCalibrateCommand;
use Coff\Hellfire\Command\AirIntakeTestCommand;
use Coff\Hellfire\Command\BuzzerTestCommand;
use Coff\Hellfire\Command\FixPermissionsInstallCommand;
use Coff\Hellfire\Command\HellfireServerCommand;
use Coff\Hellfire\Command\RelaysTestCommand;
use Coff\Hellfire\Command\StorageInstallCommand;
use Coff\Hellfire\Command\ThermocoupleTestCommand;
use Coff\Hellfire\Command\W1ServerCommand;
use Pimple\Container;
require __DIR__ . '/vendor/autoload.php';
$container = new Container();
require (__DIR__ . '/app/bootstrap.php');
$app = new HellfireApplication('HellfirePi', '0.0.1');
$app->setCatchExceptions(false);
$app->setContainer($container);
/** Install commands */
$app->add(new StorageInstallCommand());
$app->add(new FixPermissionsInstallCommand());
/** Server commands */
$app->add(new W1ServerCommand());
$app->add(new HellfireServerCommand());
/** Test commands */
$app->add(new AirIntakeTestCommand());
$app->add(new RelaysTestCommand());
$app->add(new BuzzerTestCommand());
$app->add(new ThermocoupleTestCommand());
/** Calibration commands */
$app->add(new AirIntakeCalibrateCommand());
$app->run();