Compare commits

...

2 Commits

Author SHA1 Message Date
as2252258 516c7612a5 改名 2021-07-08 18:02:21 +08:00
as2252258 3bb3d5a1d7 改名 2021-07-08 17:36:28 +08:00
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ abstract class HttpService extends Component
* @param string $category
* @throws Exception
*/
protected function write($message, $category = 'app')
protected function write($message, string $category = 'app')
{
$logger = Snowflake::app()->getLogger();
$logger->write($message, $category);
+3 -1
View File
@@ -35,7 +35,6 @@ use function Co\run;
* @package Snowflake
*
* @property-read Config $config
* @property-read WchatProviders $wchat
*/
class Application extends BaseApplication
{
@@ -62,6 +61,9 @@ class Application extends BaseApplication
}
/**
* @param Closure|array $closure
* @return $this
+2 -2
View File
@@ -41,8 +41,8 @@ abstract class Process extends \Swoole\Process implements SProcess
putenv('environmental=' . Snowflake::PROCESS);
fire(Event::SERVER_WORKER_START);
if (Snowflake::getPlatform()->isLinux()) {
swoole_set_process_name($this->getProcessName());
if (Snowflake::getPlatform()->isLinux()) {
name($this->pid, $this->getProcessName());
}
if (method_exists($this, 'before')) {
$this->before($process);