generated from Potter/Template
initialize
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
# Template
|
# Request
|
||||||
|
|
||||||
Potter Framework Component Template
|
Potter Framework Request Interface
|
||||||
+5
-4
@@ -1,14 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "potter/template",
|
"name": "potter/request",
|
||||||
"description": "Potter Framework Component Template",
|
"description": "Potter Framework Request Interface",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.5"
|
"php": "^8.5",
|
||||||
|
"psr/http-message": "^2.0"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Potter\\": "src/Potter/"
|
"Potter\\Request\\": "src/Potter/Request/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Potter\Request;
|
||||||
|
|
||||||
|
use \Psr\Http\Message\RequestInterface as PsrRequestInterface;
|
||||||
|
use \Psr\Http\Message\UriInterface as PsrUriInterface;
|
||||||
|
|
||||||
|
interface RequestInterface extends PsrRequestInterface
|
||||||
|
{
|
||||||
|
public function getRequestTarget(): string;
|
||||||
|
public function withRequestTarget(string $requestTarget): PsrRequestInterface;
|
||||||
|
public function getMethod(): string;
|
||||||
|
public function withMethod(string $method): PsrRequestInterface;
|
||||||
|
public function getUri(): PsrUriInterface;
|
||||||
|
public function withUri(PsrUriInterface $uri, bool $preserveHost = false): PsrRequestInterface;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user