改名
This commit is contained in:
@@ -33,12 +33,9 @@ class Kafka implements CustomProcess
|
||||
|
||||
/**
|
||||
* @param array $kafkaConfig
|
||||
* @throws ReflectionException
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
public function __construct(public array $kafkaConfig)
|
||||
{
|
||||
scan_directory(directory('app'), 'App', [CONTROLLER_PATH]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -141,6 +141,9 @@ class ServerManager extends Abstracts\Server
|
||||
if (Snowflake::getPlatform()->isLinux()) {
|
||||
$soloProcess->name($system . '.' . $customProcess->getProcessName($soloProcess) . ' start.');
|
||||
}
|
||||
|
||||
scan_directory(directory('app'), 'App', [CONTROLLER_PATH]);
|
||||
|
||||
echo sprintf("\033[36m[" . date('Y-m-d H:i:s') . "]\033[0m Process %s start.", $customProcess->getProcessName($soloProcess)) . PHP_EOL;
|
||||
$customProcess->onHandler($soloProcess);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user