Updated readme, misc fixes

* Look for spark config in parent directories
* Version tracking via src/version
This commit is contained in:
2021-12-08 22:19:20 +01:00
parent c3e97ea4b1
commit 0d8844f499
5 changed files with 30 additions and 5 deletions

View File

@ -25,13 +25,13 @@ class SparkApplication extends Application
public function __construct()
{
parent::__construct("Spark", "dev");
parent::__construct("Spark", APP_VERSION);
self::$instance = $this;
$this->resourceManager = new ResourceManager();
$this->pluginManager = new PluginManager();
$this->environment = Environment::createFromDirectory();
$this->environment = Environment::createFromDirectory(null, true);
$this->environment->loadEnvironment();
$this->add(new Commands\RunCommand());