refractor to potter/closeable

This commit is contained in:
2026-06-05 14:03:46 -04:00
parent ff62b17154
commit e02adc7dce
4 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
# Startable
# Closeable
Potter Framework Startable Interface
Potter Framework Closeable Interface
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "potter/startable",
"description": "Potter Framework Startable Interface",
"name": "potter/closeable",
"description": "Potter Framework Closeable Interface",
"type": "library",
"require": {
"php": "^8.5"
@@ -8,7 +8,7 @@
"license": "MIT",
"autoload": {
"psr-4": {
"Potter\\Startable\\": "src/Potter/Startable/"
"Potter\\Closeable\\": "src/Potter/Closeable/"
}
},
"authors": [
@@ -0,0 +1,10 @@
<?php
declare(strict_types=1);
namespace Potter\Closeable;
interface CloseableInterface
{
public function close(): void;
}
@@ -1,10 +0,0 @@
<?php
declare(strict_types=1);
namespace Potter\Startable;
interface StartableInterface
{
public function start(): void;
}