initialize

This commit is contained in:
2026-06-05 15:58:31 -04:00
parent 72cf42dda9
commit 6f8a98bc52
3 changed files with 25 additions and 6 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
# Template # Request
Potter Framework Component Template Potter Framework Request Interface
+5 -4
View File
@@ -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": [
+18
View File
@@ -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;
}