Christopher Vagnetoft
d940a94611
* Fixed an error when trying to create nonexisting resource type * Updated the init-command to create plugins and scipts directories * Added a basic installer function
19 lines
361 B
PHP
Executable File
19 lines
361 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
if (file_exists(__DIR__."/../src/version"))
|
|
require_once __DIR__."/../src/version";
|
|
else {
|
|
define("APP_VERSION", "dev");
|
|
}
|
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
if ($argc == 2 && $argv[1] === "install") {
|
|
require_once __DIR__."/../src/install";
|
|
exit(0);
|
|
}
|
|
|
|
$app = new Spark\SparkApplication();
|
|
$app->run();
|