Compare commits

...

4 Commits

Author SHA1 Message Date
jay 46ba495fe6 create ContainerInterface 2026-05-31 17:56:36 -04:00
jay 1e60fc5d10 require psr/container 2026-05-31 17:54:44 -04:00
jay d5c41c49cc fix description 2026-05-31 17:53:08 -04:00
jay 7450c325bf refractor to potter/container 2026-05-31 17:52:31 -04:00
3 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
# Template
# Container
Potter Framework Component Template
Potter Framework Container Interface
+5 -4
View File
@@ -1,14 +1,15 @@
{
"name": "potter/template",
"description": "Potter Framework Component Template",
"name": "potter/container",
"description": "Potter Framework Container Interface",
"type": "library",
"require": {
"php": "^8.5"
"php": "^8.5",
"psr/container": "^2.0"
},
"license": "MIT",
"autoload": {
"psr-4": {
"Potter\\": "src/Potter/"
"Potter\\Container\\": "src/Potter/Container/"
}
},
"authors": [
@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace Potter\Container;
use \Psr\Container\ContainerInterface as BaseContainerInterface;
interface ContainerInterface extends BaseContainerInterface
{
public function get(string $key): mixed;
public function has(string $key): bool;
}