Split server and client namespacing.
This commit is contained in:
parent
d6819a29fe
commit
799688b3d2
15 changed files with 19 additions and 17 deletions
|
@ -1,11 +1,12 @@
|
|||
<?php
|
||||
// RpcClient.php
|
||||
// Created: 2024-08-13
|
||||
// Updated: 2024-08-13
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Client;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use Aiwass\{AiwassMsgPack,IHttpRequest,IVerificationProvider};
|
||||
|
||||
/**
|
||||
* Implemens an RPC client.
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-15
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
/**
|
||||
* Provides the interface for IRpcServer::register().
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-16
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
use RuntimeException;
|
||||
use InvalidArgumentException;
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-15
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
use Attribute;
|
||||
use ReflectionAttribute;
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
// RpcActionHandler.php
|
||||
// Created: 2024-08-15
|
||||
// Updated: 2024-08-15
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
/**
|
||||
* Provides an abstract class version of IRpcActionHandler that already includes the trait as well,
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-15
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
/**
|
||||
* Provides an implementation of IRpcActionHandler::registerRpcActions that uses the attributes.
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-13
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
use Closure;
|
||||
use InvalidArgumentException;
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-15
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
use Attribute;
|
||||
/**
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-15
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
use Attribute;
|
||||
/**
|
|
@ -3,10 +3,11 @@
|
|||
// Created: 2024-08-13
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
use Exception;
|
||||
use RuntimeException;
|
||||
use Aiwass\{AiwassMsgPack,IVerificationProvider};
|
||||
use Index\Http\{HttpResponseBuilder,HttpRequest};
|
||||
use Index\Http\Content\FormContent;
|
||||
use Index\Http\Routing\{HttpGet,HttpPost,RouteHandler};
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-13
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use RuntimeException;
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-16
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
/**
|
||||
* Provides a scoped RPC server implementation.
|
|
@ -3,7 +3,7 @@
|
|||
// Created: 2024-08-16
|
||||
// Updated: 2024-08-16
|
||||
|
||||
namespace Aiwass;
|
||||
namespace Aiwass\Server;
|
||||
|
||||
/**
|
||||
* Provides implementations for IRpcServer methods that are likely going to be identical across implementations.
|
|
@ -8,7 +8,7 @@ declare(strict_types=1);
|
|||
use RuntimeException;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PHPUnit\Framework\Attributes\{CoversClass,UsesClass};
|
||||
use Aiwass\{RpcAction,RpcActionHandler,RpcProcedure,RpcQuery,RpcServer};
|
||||
use Aiwass\Server\{RpcAction,RpcActionHandler,RpcProcedure,RpcQuery,RpcServer};
|
||||
|
||||
#[CoversClass(RpcAction::class)]
|
||||
#[CoversClass(RpcActionHandler::class)]
|
||||
|
|
|
@ -7,7 +7,7 @@ declare(strict_types=1);
|
|||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PHPUnit\Framework\Attributes\{CoversClass,UsesClass};
|
||||
use Aiwass\{RpcServer,RpcServerScoped};
|
||||
use Aiwass\Server\{RpcServer,RpcServerScoped};
|
||||
|
||||
#[CoversClass(RpcServerScoped::class)]
|
||||
#[UsesClass(RpcServer::class)]
|
||||
|
|
Loading…
Reference in a new issue