改名
This commit is contained in:
@@ -35,7 +35,6 @@ use function Co\run;
|
|||||||
* @package Snowflake
|
* @package Snowflake
|
||||||
*
|
*
|
||||||
* @property-read Config $config
|
* @property-read Config $config
|
||||||
* @property-read WchatProviders $wchat
|
|
||||||
*/
|
*/
|
||||||
class Application extends BaseApplication
|
class Application extends BaseApplication
|
||||||
{
|
{
|
||||||
@@ -62,6 +61,9 @@ class Application extends BaseApplication
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Closure|array $closure
|
* @param Closure|array $closure
|
||||||
* @return $this
|
* @return $this
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ abstract class Process extends \Swoole\Process implements SProcess
|
|||||||
putenv('environmental=' . Snowflake::PROCESS);
|
putenv('environmental=' . Snowflake::PROCESS);
|
||||||
|
|
||||||
fire(Event::SERVER_WORKER_START);
|
fire(Event::SERVER_WORKER_START);
|
||||||
if (Snowflake::getPlatform()->isLinux()) {
|
if (Snowflake::getPlatform()->isLinux()) {
|
||||||
swoole_set_process_name($this->getProcessName());
|
name($this->pid, $this->getProcessName());
|
||||||
}
|
}
|
||||||
if (method_exists($this, 'before')) {
|
if (method_exists($this, 'before')) {
|
||||||
$this->before($process);
|
$this->before($process);
|
||||||
|
|||||||
Reference in New Issue
Block a user