-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
518 additions
and
833 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <[email protected]> | ||
* @copyright Copyright (c) 2018, Anatoly Nekhay | ||
* @license https://github.com/sunrise-php/http-router/blob/master/LICENSE | ||
* @link https://github.com/sunrise-php/http-router | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Sunrise\Http\Router\Annotation; | ||
|
||
use Attribute; | ||
use Sunrise\Http\Router\Entity\MediaType\MediaTypeFactory; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] | ||
final class ConsumesImage extends Consumes | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(MediaTypeFactory::image()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <[email protected]> | ||
* @copyright Copyright (c) 2018, Anatoly Nekhay | ||
* @license https://github.com/sunrise-php/http-router/blob/master/LICENSE | ||
* @link https://github.com/sunrise-php/http-router | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Sunrise\Http\Router\Annotation; | ||
|
||
use Attribute; | ||
use Sunrise\Http\Router\Entity\MediaType\MediaTypeFactory; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] | ||
final class ConsumesJson extends Consumes | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(MediaTypeFactory::json()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <[email protected]> | ||
* @copyright Copyright (c) 2018, Anatoly Nekhay | ||
* @license https://github.com/sunrise-php/http-router/blob/master/LICENSE | ||
* @link https://github.com/sunrise-php/http-router | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Sunrise\Http\Router\Annotation; | ||
|
||
use Attribute; | ||
use Sunrise\Http\Router\Entity\MediaType\MediaTypeFactory; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] | ||
final class ConsumesXml extends Consumes | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(MediaTypeFactory::xml()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.