This repository was archived by the owner on Feb 24, 2025. It is now read-only.
File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 13
13
use Usox \JsonSchemaApi \Exception \MethodNotFoundException ;
14
14
use Usox \JsonSchemaApi \Exception \RequestMalformedException ;
15
15
use Usox \JsonSchemaApi \Exception \ResponseMalformedException ;
16
- use Usox \JsonSchemaApi \Dispatch \Exception \SchemaInvalidException ;
17
16
use Usox \JsonSchemaApi \Dispatch \Exception \SchemaNotFoundException ;
18
17
19
18
final class MethodDispatcher implements MethodDispatcherInterface
Original file line number Diff line number Diff line change 9
9
use Psr \Http \Message \ResponseInterface ;
10
10
use Psr \Http \Message \ServerRequestInterface ;
11
11
use Psr \Http \Message \StreamFactoryInterface ;
12
- use Psr \Http \Server \MiddlewareInterface ;
13
12
use Psr \Http \Server \RequestHandlerInterface ;
14
13
use Psr \Log \LoggerInterface ;
15
14
use Ramsey \Uuid \UuidFactory ;
30
29
use Usox \JsonSchemaApi \Response \ResponseBuilderInterface ;
31
30
32
31
final class Endpoint implements
33
- MiddlewareInterface
32
+ EndpointInterface
34
33
{
35
34
private RequestValidatorInterface $ inputValidator ;
36
35
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Usox \JsonSchemaApi ;
4
+
5
+ use Psr \Http \Message \ResponseInterface ;
6
+ use Psr \Http \Message \ServerRequestInterface ;
7
+ use Psr \Http \Server \MiddlewareInterface ;
8
+
9
+ interface EndpointInterface extends
10
+ MiddlewareInterface
11
+ {
12
+ public function serve (
13
+ ServerRequestInterface $ request ,
14
+ ResponseInterface $ response
15
+ ): ResponseInterface ;
16
+ }
You can’t perform that action at this time.
0 commit comments