改名
This commit is contained in:
@@ -31,15 +31,6 @@ class Application extends BaseApplication
|
|||||||
public $id = 'uniqueId';
|
public $id = 'uniqueId';
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public function init()
|
|
||||||
{
|
|
||||||
Snowflake::get()->processes->initCore();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $service
|
* @param string $service
|
||||||
* @return $this
|
* @return $this
|
||||||
@@ -64,6 +55,7 @@ class Application extends BaseApplication
|
|||||||
public function start()
|
public function start()
|
||||||
{
|
{
|
||||||
$process = Snowflake::get()->processes;
|
$process = Snowflake::get()->processes;
|
||||||
|
$process->initCore();
|
||||||
$process->start();
|
$process->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ namespace Snowflake;
|
|||||||
|
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use HttpServer\Server;
|
||||||
use PHPMailer\PHPMailer\PHPMailer;
|
use PHPMailer\PHPMailer\PHPMailer;
|
||||||
use PHPMailer\PHPMailer\SMTP;
|
use PHPMailer\PHPMailer\SMTP;
|
||||||
use Snowflake\Abstracts\Component;
|
use Snowflake\Abstracts\Component;
|
||||||
@@ -26,6 +27,7 @@ class Processes extends Component
|
|||||||
*/
|
*/
|
||||||
public function initCore()
|
public function initCore()
|
||||||
{
|
{
|
||||||
|
/** @var Server $manager */
|
||||||
$manager = Snowflake::get()->get('server');
|
$manager = Snowflake::get()->get('server');
|
||||||
|
|
||||||
$serverConfig = Config::get('servers', true);
|
$serverConfig = Config::get('servers', true);
|
||||||
|
|||||||
Reference in New Issue
Block a user