php-spark/bin/spark

19 lines
361 B
Plaintext
Raw Permalink Normal View History

2021-12-07 16:26:34 +00:00
#!/usr/bin/env php
<?php
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";
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();