-
-
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
36 changed files
with
515 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Consumes; | ||
|
||
use Sunrise\Http\Router\Annotation\Consumes; | ||
use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Image extends Consumes | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(ServerMediaType::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,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Consumes; | ||
|
||
use Sunrise\Http\Router\Annotation\Consumes; | ||
use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Json extends Consumes | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(ServerMediaType::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,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Consumes; | ||
|
||
use Sunrise\Http\Router\Annotation\Consumes; | ||
use Sunrise\Http\Router\Entity\MediaType\ServerMediaType; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Xml extends Consumes | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(ServerMediaType::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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Method; | ||
|
||
use Fig\Http\Message\RequestMethodInterface; | ||
use Sunrise\Http\Router\Annotation\Method; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Delete extends Method | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(RequestMethodInterface::METHOD_DELETE); | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Method; | ||
|
||
use Fig\Http\Message\RequestMethodInterface; | ||
use Sunrise\Http\Router\Annotation\Method; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Get extends Method | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(RequestMethodInterface::METHOD_GET); | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Method; | ||
|
||
use Fig\Http\Message\RequestMethodInterface; | ||
use Sunrise\Http\Router\Annotation\Method; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Head extends Method | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(RequestMethodInterface::METHOD_HEAD); | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Method; | ||
|
||
use Fig\Http\Message\RequestMethodInterface; | ||
use Sunrise\Http\Router\Annotation\Method; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Options extends Method | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(RequestMethodInterface::METHOD_OPTIONS); | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Method; | ||
|
||
use Fig\Http\Message\RequestMethodInterface; | ||
use Sunrise\Http\Router\Annotation\Method; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Patch extends Method | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(RequestMethodInterface::METHOD_PATCH); | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Method; | ||
|
||
use Fig\Http\Message\RequestMethodInterface; | ||
use Sunrise\Http\Router\Annotation\Method; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Post extends Method | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(RequestMethodInterface::METHOD_POST); | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Method; | ||
|
||
use Fig\Http\Message\RequestMethodInterface; | ||
use Sunrise\Http\Router\Annotation\Method; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Purge extends Method | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(RequestMethodInterface::METHOD_PURGE); | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Method; | ||
|
||
use Fig\Http\Message\RequestMethodInterface; | ||
use Sunrise\Http\Router\Annotation\Method; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Put extends Method | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(RequestMethodInterface::METHOD_PUT); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <afenric@gmail.com> | ||
* @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\Pattern; | ||
|
||
use Sunrise\Http\Router\Annotation\Pattern; | ||
use Sunrise\Http\Router\Dictionary\VariablePattern; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
final class Uuid extends Pattern | ||
{ | ||
public function __construct(string $variableName) | ||
{ | ||
parent::__construct($variableName, VariablePattern::UUID); | ||
} | ||
} |
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
Oops, something went wrong.