refactor(infrastructure): Reorganize routing and messaging architecture with middleware support

This commit is contained in:
m.jalmoudy
2025-12-02 16:56:10 +03:30
parent 5326f40b2b
commit a014c36f63
11 changed files with 138 additions and 39 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace DistributingCarriers\Infrastructure\Routing;
interface IRoute
{
public function getMethod(): string;
public function getPath(): string;
public function getHandler(): IRequestHandler;
public function getMiddlewares(): array;
}