This commit is contained in:
2020-09-02 18:25:07 +08:00
parent 63437f77a7
commit 2ac024d493
2 changed files with 3 additions and 9 deletions
+1 -9
View File
@@ -31,15 +31,6 @@ class Application extends BaseApplication
public $id = 'uniqueId';
/**
* @throws Exception
*/
public function init()
{
Snowflake::get()->processes->initCore();
}
/**
* @param string $service
* @return $this
@@ -64,6 +55,7 @@ class Application extends BaseApplication
public function start()
{
$process = Snowflake::get()->processes;
$process->initCore();
$process->start();
}
+2
View File
@@ -5,6 +5,7 @@ namespace Snowflake;
use Exception;
use HttpServer\Server;
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use Snowflake\Abstracts\Component;
@@ -26,6 +27,7 @@ class Processes extends Component
*/
public function initCore()
{
/** @var Server $manager */
$manager = Snowflake::get()->get('server');
$serverConfig = Config::get('servers', true);