From 105a2442f124b79aad026b170542666c0a2b6c7e Mon Sep 17 00:00:00 2001 From: David Barratt Date: Sat, 30 Sep 2017 11:53:35 -0400 Subject: [PATCH] Add @Annotation to the Annotations to prevent an exception --- src/Annotation/RequestGroups.php | 6 ++++++ src/Annotation/ResponseGroups.php | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/Annotation/RequestGroups.php b/src/Annotation/RequestGroups.php index 19bdd20..c645fde 100644 --- a/src/Annotation/RequestGroups.php +++ b/src/Annotation/RequestGroups.php @@ -4,6 +4,12 @@ use Symfony\Component\Serializer\Annotation\Groups; +/** + * Annotation class for @ResponseGroups(). + * + * @Annotation + * @Target({"METHOD"}) + */ class RequestGroups extends Groups { diff --git a/src/Annotation/ResponseGroups.php b/src/Annotation/ResponseGroups.php index 780999b..8792841 100644 --- a/src/Annotation/ResponseGroups.php +++ b/src/Annotation/ResponseGroups.php @@ -4,6 +4,12 @@ use Symfony\Component\Serializer\Annotation\Groups; +/** + * Annotation class for @ResponseGroups(). + * + * @Annotation + * @Target({"METHOD"}) + */ class ResponseGroups extends Groups {