This commit is contained in:
2021-08-05 16:25:17 +08:00
parent 7647c55283
commit 64df33b1f2
2 changed files with 3 additions and 3 deletions
-3
View File
@@ -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]);
}
+3
View File
@@ -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);
},