Split server and client namespacing.

This commit is contained in:
flash 2024-08-16 15:20:15 +00:00
parent d6819a29fe
commit 799688b3d2
15 changed files with 19 additions and 17 deletions

View file

@ -1,11 +1,12 @@
<?php <?php
// RpcClient.php // RpcClient.php
// Created: 2024-08-13 // Created: 2024-08-13
// Updated: 2024-08-13 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Client;
use InvalidArgumentException; use InvalidArgumentException;
use Aiwass\{AiwassMsgPack,IHttpRequest,IVerificationProvider};
/** /**
* Implemens an RPC client. * Implemens an RPC client.

View file

@ -3,7 +3,7 @@
// Created: 2024-08-15 // Created: 2024-08-15
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
/** /**
* Provides the interface for IRpcServer::register(). * Provides the interface for IRpcServer::register().

View file

@ -3,7 +3,7 @@
// Created: 2024-08-16 // Created: 2024-08-16
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
use RuntimeException; use RuntimeException;
use InvalidArgumentException; use InvalidArgumentException;

View file

@ -3,7 +3,7 @@
// Created: 2024-08-15 // Created: 2024-08-15
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
use Attribute; use Attribute;
use ReflectionAttribute; use ReflectionAttribute;

View file

@ -1,9 +1,9 @@
<?php <?php
// RpcActionHandler.php // RpcActionHandler.php
// Created: 2024-08-15 // 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, * Provides an abstract class version of IRpcActionHandler that already includes the trait as well,

View file

@ -3,7 +3,7 @@
// Created: 2024-08-15 // Created: 2024-08-15
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
/** /**
* Provides an implementation of IRpcActionHandler::registerRpcActions that uses the attributes. * Provides an implementation of IRpcActionHandler::registerRpcActions that uses the attributes.

View file

@ -3,7 +3,7 @@
// Created: 2024-08-13 // Created: 2024-08-13
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
use Closure; use Closure;
use InvalidArgumentException; use InvalidArgumentException;

View file

@ -3,7 +3,7 @@
// Created: 2024-08-15 // Created: 2024-08-15
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
use Attribute; use Attribute;
/** /**

View file

@ -3,7 +3,7 @@
// Created: 2024-08-15 // Created: 2024-08-15
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
use Attribute; use Attribute;
/** /**

View file

@ -3,10 +3,11 @@
// Created: 2024-08-13 // Created: 2024-08-13
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
use Exception; use Exception;
use RuntimeException; use RuntimeException;
use Aiwass\{AiwassMsgPack,IVerificationProvider};
use Index\Http\{HttpResponseBuilder,HttpRequest}; use Index\Http\{HttpResponseBuilder,HttpRequest};
use Index\Http\Content\FormContent; use Index\Http\Content\FormContent;
use Index\Http\Routing\{HttpGet,HttpPost,RouteHandler}; use Index\Http\Routing\{HttpGet,HttpPost,RouteHandler};

View file

@ -3,7 +3,7 @@
// Created: 2024-08-13 // Created: 2024-08-13
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
use InvalidArgumentException; use InvalidArgumentException;
use RuntimeException; use RuntimeException;

View file

@ -3,7 +3,7 @@
// Created: 2024-08-16 // Created: 2024-08-16
// Updated: 2024-08-16 // Updated: 2024-08-16
namespace Aiwass; namespace Aiwass\Server;
/** /**
* Provides a scoped RPC server implementation. * Provides a scoped RPC server implementation.

View file

@ -3,7 +3,7 @@
// Created: 2024-08-16 // Created: 2024-08-16
// Updated: 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. * Provides implementations for IRpcServer methods that are likely going to be identical across implementations.

View file

@ -8,7 +8,7 @@ declare(strict_types=1);
use RuntimeException; use RuntimeException;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\{CoversClass,UsesClass}; 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(RpcAction::class)]
#[CoversClass(RpcActionHandler::class)] #[CoversClass(RpcActionHandler::class)]

View file

@ -7,7 +7,7 @@ declare(strict_types=1);
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Attributes\{CoversClass,UsesClass}; use PHPUnit\Framework\Attributes\{CoversClass,UsesClass};
use Aiwass\{RpcServer,RpcServerScoped}; use Aiwass\Server\{RpcServer,RpcServerScoped};
#[CoversClass(RpcServerScoped::class)] #[CoversClass(RpcServerScoped::class)]
#[UsesClass(RpcServer::class)] #[UsesClass(RpcServer::class)]