Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 46ba495fe6 | |||
| 1e60fc5d10 | |||
| d5c41c49cc | |||
| 7450c325bf |
@@ -1,3 +1,3 @@
|
|||||||
# Template
|
# Container
|
||||||
|
|
||||||
Potter Framework Component Template
|
Potter Framework Container Interface
|
||||||
+5
-4
@@ -1,14 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "potter/template",
|
"name": "potter/container",
|
||||||
"description": "Potter Framework Component Template",
|
"description": "Potter Framework Container Interface",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.5"
|
"php": "^8.5",
|
||||||
|
"psr/container": "^2.0"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Potter\\": "src/Potter/"
|
"Potter\\Container\\": "src/Potter/Container/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"authors": [
|
"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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user