Implement client session management and refactoring
This commit is contained in:
parent
cad2ea3419
commit
3a10e01bd8
11 changed files with 234 additions and 23 deletions
|
@ -8,6 +8,7 @@ use Socialbox\Classes\CliCommands\InitializeCommand;
|
|||
enum CliCommands : string
|
||||
{
|
||||
case INITIALIZE = 'init';
|
||||
case CLIENT = 'client';
|
||||
|
||||
/**
|
||||
* Handles the command execution, returns the exit code.
|
||||
|
@ -20,6 +21,7 @@ enum CliCommands : string
|
|||
return match ($this)
|
||||
{
|
||||
self::INITIALIZE => InitializeCommand::execute($args),
|
||||
self::CLIENT => ClientCommand::execute($args)
|
||||
};
|
||||
}
|
||||
public function getHelpMessage(): string
|
||||
|
|
8
src/Socialbox/Enums/ClientCommands.php
Normal file
8
src/Socialbox/Enums/ClientCommands.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Socialbox\Enums;
|
||||
|
||||
enum ClientCommands : string
|
||||
{
|
||||
case CONNECT = 'CONNECT';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue