From 1b4dca981026ed1df9fbac4d1e8db0b98bbe64b7 Mon Sep 17 00:00:00 2001 From: Jay Potter Date: Sat, 21 Mar 2026 11:12:26 -0400 Subject: [PATCH] init --- README.md | 2 +- composer.json | 12 +++++++----- .../Http/Server/HttpServerAwareInterface.php | 14 ++++++++++++++ src/Potter/Http/Server/HttpServerAwareTrait.php | 14 ++++++++++++++ src/Potter/Template/TemplateInterface.php | 8 -------- src/Potter/Template/TemplateTrait.php | 8 -------- 6 files changed, 36 insertions(+), 22 deletions(-) create mode 100644 src/Potter/Http/Server/HttpServerAwareInterface.php create mode 100644 src/Potter/Http/Server/HttpServerAwareTrait.php delete mode 100644 src/Potter/Template/TemplateInterface.php delete mode 100644 src/Potter/Template/TemplateTrait.php diff --git a/README.md b/README.md index 03a72b5..e167857 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# Potter Framework Component Template +# Potter Framework HTTP Server Aware Interface Hello World \ No newline at end of file diff --git a/composer.json b/composer.json index 88f10f4..4858d4a 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,9 @@ { - "name": "potter/template", - "description": "Potter Framework Component Template", + "name": "potter/http-server-aware", + "description": "Potter Framework HTTP Server Aware Interface", "version": "1.0.0", "type": "library", - "homepage": "https://gitpotter.com/Potter/Template", + "homepage": "https://gitpotter.com/Potter/HTTP-Server-Aware", "license": "MIT", "authors": [ { @@ -14,11 +14,13 @@ ], "autoload": { "psr-4": { - "Potter\\Template\\": "src/Potter/Template/" + "Potter\\Http\\Server\\": "src/Potter/Http/Server/" } }, "minimum-stability": "stable", "require": { - "php": "^8.3" + "php": "^8.3", + "potter/aware": "^1.0", + "react/http": "^1.11" } } diff --git a/src/Potter/Http/Server/HttpServerAwareInterface.php b/src/Potter/Http/Server/HttpServerAwareInterface.php new file mode 100644 index 0000000..c5197b3 --- /dev/null +++ b/src/Potter/Http/Server/HttpServerAwareInterface.php @@ -0,0 +1,14 @@ +