改名
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user