Skip to content

Commit 6a13fa8

Browse files
committed
JSONAPIHandlerInterface
1 parent 874b1f2 commit 6a13fa8

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace WebServCo\JSONAPI\Contract\Service;
6+
7+
use WebServCo\Form\Contract\FormInterface;
8+
9+
interface JSONAPIHandlerInterface extends FormInterface
10+
{
11+
}

src/WebServCo/JSONAPI/Service/Handler/JSONAPIItemHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
use Psr\Http\Message\ServerRequestInterface;
1010
use UnexpectedValueException;
1111
use WebServCo\Data\Contract\Extraction\DataExtractionContainerInterface;
12-
use WebServCo\Form\Contract\FormInterface;
1312
use WebServCo\Form\Service\AbstractForm;
13+
use WebServCo\JSONAPI\Contract\Service\JSONAPIHandlerInterface;
1414
use WebServCo\JSONAPI\Contract\Service\JSONAPIRequestServiceInterface;
1515

1616
use function in_array;
@@ -21,7 +21,7 @@
2121
*
2222
* Makes use of form system to take advantage of validation/filtering.
2323
*/
24-
final class JSONAPIItemHandler extends AbstractForm implements FormInterface
24+
final class JSONAPIItemHandler extends AbstractForm implements JSONAPIHandlerInterface
2525
{
2626
private const VALID_REQUEST_METHODS = [
2727
RequestMethodInterface::METHOD_DELETE,

0 commit comments

Comments
 (0)