Skip to content

Commit

Permalink
v3
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Oct 24, 2024
1 parent 758f534 commit e146d46
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Annotation/Consumes/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Consumes/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Consumes/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Method/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Method/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Method/Head.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Method/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Method/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Method/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Method/Purge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Method/Put.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Pattern/Uuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Produces/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Produces/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Produces/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Annotation/Produces/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e146d46

Please sign in to comment.