2021-12-07 16:26:34 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
2021-12-08 21:19:20 +00:00
|
|
|
if (file_exists(__DIR__."/../src/version"))
|
|
|
|
require_once __DIR__."/../src/version";
|
|
|
|
else {
|
|
|
|
define("APP_VERSION", "dev");
|
|
|
|
}
|
|
|
|
|
2021-12-07 16:26:34 +00:00
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
|
2021-12-08 23:12:37 +00:00
|
|
|
if ($argc == 2 && $argv[1] === "install") {
|
|
|
|
require_once __DIR__."/../src/install";
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
|
2021-12-07 16:26:34 +00:00
|
|
|
$app = new Spark\SparkApplication();
|
|
|
|
$app->run();
|