diff --git a/src/Annotation/Consumes/Image.php b/src/Annotation/Consumes/Image.php index dea1d648..63388005 100644 --- a/src/Annotation/Consumes/Image.php +++ b/src/Annotation/Consumes/Image.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Consumes; +use Attribute; use Sunrise\Http\Router\Annotation\Consumes; use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Image extends Consumes { public function __construct() diff --git a/src/Annotation/Consumes/Json.php b/src/Annotation/Consumes/Json.php index 7a98c482..f8ae2d3b 100644 --- a/src/Annotation/Consumes/Json.php +++ b/src/Annotation/Consumes/Json.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Consumes; +use Attribute; use Sunrise\Http\Router\Annotation\Consumes; use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Json extends Consumes { public function __construct() diff --git a/src/Annotation/Consumes/Xml.php b/src/Annotation/Consumes/Xml.php index a1eddcca..7b9617a7 100644 --- a/src/Annotation/Consumes/Xml.php +++ b/src/Annotation/Consumes/Xml.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Consumes; +use Attribute; use Sunrise\Http\Router\Annotation\Consumes; use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Xml extends Consumes { public function __construct() diff --git a/src/Annotation/Method/Delete.php b/src/Annotation/Method/Delete.php index 3cfc630a..ad171d7d 100644 --- a/src/Annotation/Method/Delete.php +++ b/src/Annotation/Method/Delete.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Method; +use Attribute; use Fig\Http\Message\RequestMethodInterface; use Sunrise\Http\Router\Annotation\Method; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Delete extends Method { public function __construct() diff --git a/src/Annotation/Method/Get.php b/src/Annotation/Method/Get.php index e11dcf38..d95d7aa7 100644 --- a/src/Annotation/Method/Get.php +++ b/src/Annotation/Method/Get.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Method; +use Attribute; use Fig\Http\Message\RequestMethodInterface; use Sunrise\Http\Router\Annotation\Method; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Get extends Method { public function __construct() diff --git a/src/Annotation/Method/Head.php b/src/Annotation/Method/Head.php index bf2a900a..d7924d63 100644 --- a/src/Annotation/Method/Head.php +++ b/src/Annotation/Method/Head.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Method; +use Attribute; use Fig\Http\Message\RequestMethodInterface; use Sunrise\Http\Router\Annotation\Method; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Head extends Method { public function __construct() diff --git a/src/Annotation/Method/Options.php b/src/Annotation/Method/Options.php index f4dda616..eaf7c577 100644 --- a/src/Annotation/Method/Options.php +++ b/src/Annotation/Method/Options.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Method; +use Attribute; use Fig\Http\Message\RequestMethodInterface; use Sunrise\Http\Router\Annotation\Method; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Options extends Method { public function __construct() diff --git a/src/Annotation/Method/Patch.php b/src/Annotation/Method/Patch.php index 79554d6e..5348a673 100644 --- a/src/Annotation/Method/Patch.php +++ b/src/Annotation/Method/Patch.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Method; +use Attribute; use Fig\Http\Message\RequestMethodInterface; use Sunrise\Http\Router\Annotation\Method; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Patch extends Method { public function __construct() diff --git a/src/Annotation/Method/Post.php b/src/Annotation/Method/Post.php index a8714620..1cf99363 100644 --- a/src/Annotation/Method/Post.php +++ b/src/Annotation/Method/Post.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Method; +use Attribute; use Fig\Http\Message\RequestMethodInterface; use Sunrise\Http\Router\Annotation\Method; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Post extends Method { public function __construct() diff --git a/src/Annotation/Method/Purge.php b/src/Annotation/Method/Purge.php index d6c18777..303967be 100644 --- a/src/Annotation/Method/Purge.php +++ b/src/Annotation/Method/Purge.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Method; +use Attribute; use Fig\Http\Message\RequestMethodInterface; use Sunrise\Http\Router\Annotation\Method; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Purge extends Method { public function __construct() diff --git a/src/Annotation/Method/Put.php b/src/Annotation/Method/Put.php index 1e10b328..c3572fb5 100644 --- a/src/Annotation/Method/Put.php +++ b/src/Annotation/Method/Put.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Method; +use Attribute; use Fig\Http\Message\RequestMethodInterface; use Sunrise\Http\Router\Annotation\Method; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Put extends Method { public function __construct() diff --git a/src/Annotation/Pattern/Uuid.php b/src/Annotation/Pattern/Uuid.php index c58dfa57..a0e2b58e 100644 --- a/src/Annotation/Pattern/Uuid.php +++ b/src/Annotation/Pattern/Uuid.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Pattern; +use Attribute; use Sunrise\Http\Router\Annotation\Pattern; use Sunrise\Http\Router\Dictionary\VariablePattern; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Uuid extends Pattern { public function __construct(string $variableName) diff --git a/src/Annotation/Produces/Html.php b/src/Annotation/Produces/Html.php index c939421e..dd50d12a 100644 --- a/src/Annotation/Produces/Html.php +++ b/src/Annotation/Produces/Html.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Produces; +use Attribute; use Sunrise\Http\Router\Annotation\Produces; use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Html extends Produces { public function __construct() diff --git a/src/Annotation/Produces/Json.php b/src/Annotation/Produces/Json.php index 5fd7e0fb..c142c4a3 100644 --- a/src/Annotation/Produces/Json.php +++ b/src/Annotation/Produces/Json.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Produces; +use Attribute; use Sunrise\Http\Router\Annotation\Produces; use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Json extends Produces { public function __construct() diff --git a/src/Annotation/Produces/Text.php b/src/Annotation/Produces/Text.php index 1def0c6e..b095fab6 100644 --- a/src/Annotation/Produces/Text.php +++ b/src/Annotation/Produces/Text.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Produces; +use Attribute; use Sunrise\Http\Router\Annotation\Produces; use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Text extends Produces { public function __construct() diff --git a/src/Annotation/Produces/Xml.php b/src/Annotation/Produces/Xml.php index 11962c37..9e24403a 100644 --- a/src/Annotation/Produces/Xml.php +++ b/src/Annotation/Produces/Xml.php @@ -13,12 +13,14 @@ namespace Sunrise\Http\Router\Annotation\Produces; +use Attribute; use Sunrise\Http\Router\Annotation\Produces; use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; /** * @since 3.0.0 */ +#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Xml extends Produces { public function __construct()