Skip to content

Commit 874b1f2

Browse files
committed
JSONAPIItemHandler refactoring.
1 parent 036528f commit 874b1f2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/WebServCo/JSONAPI/Service/Form/JSONAPIItemForm.php renamed to src/WebServCo/JSONAPI/Service/Handler/JSONAPIItemHandler.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace WebServCo\JSONAPI\Service\Form;
5+
namespace WebServCo\JSONAPI\Service\Handler;
66

77
use Fig\Http\Message\RequestMethodInterface;
88
use OutOfBoundsException;
@@ -16,7 +16,12 @@
1616
use function in_array;
1717
use function sprintf;
1818

19-
final class JSONAPIItemForm extends AbstractForm implements FormInterface
19+
/**
20+
* A JSONAPI request item handler.
21+
*
22+
* Makes use of form system to take advantage of validation/filtering.
23+
*/
24+
final class JSONAPIItemHandler extends AbstractForm implements FormInterface
2025
{
2126
private const VALID_REQUEST_METHODS = [
2227
RequestMethodInterface::METHOD_DELETE,

0 commit comments

Comments
 (0)