This commit is contained in:
2020-09-02 11:38:47 +08:00
parent 3e46f5790f
commit 8397c2ac8a
46 changed files with 1021 additions and 824 deletions
+5 -9
View File
@@ -34,16 +34,12 @@ class Application extends BaseApplication
*/
public function init()
{
/** @var Server $https */
$https = $this->make(Server::class, Server::class);
$https->initCore(Config::get('servers', true));
$process = Snowflake::get()->processes;
if (Config::has('servers', true)) {
/** @var Server $https */
$https = $this->make(Server::class, Server::class);
$servers = $https->initCore(Config::get('servers'));
$process->push($servers);
}
if (Config::has('processes', true)) {
$process->push(Config::get('processes'));
}
$process->initCore();
}