Updated Project Source code (I don't remember what i did.)
This commit is contained in:
parent
fc2e4d5a73
commit
4879fdf36d
10 changed files with 289 additions and 10 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Socialbox;
|
||||
|
||||
use ConfigLib\Configuration;
|
||||
use Socialbox\Classes\RpcHandler;
|
||||
use Socialbox\Enums\StandardError;
|
||||
use Socialbox\Enums\StandardMethods;
|
||||
|
@ -9,6 +10,11 @@
|
|||
|
||||
class Socialbox
|
||||
{
|
||||
public static function getConfiguration(): array
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static function handleRpc(): void
|
||||
{
|
||||
try
|
||||
|
@ -29,7 +35,7 @@
|
|||
|
||||
if($method === false)
|
||||
{
|
||||
$response = $rpcRequest->produceError(StandardError::RPC_METHOD_NOT_FOUND, 'The requested method does not exist');;
|
||||
$response = $rpcRequest->produceError(StandardError::RPC_METHOD_NOT_FOUND, 'The requested method does not exist');
|
||||
if($response !== null)
|
||||
{
|
||||
$results[] = $response;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue