This commit is contained in:
2021-09-18 16:54:39 +08:00
parent a6f056b8c8
commit 8f3b856bd6
63 changed files with 232 additions and 1585 deletions
+16 -1
View File
@@ -3,7 +3,6 @@
namespace Http\Handler\Abstracts;
use Closure;
use Kiri\Kiri;
class HandlerManager
{
@@ -43,4 +42,20 @@ class HandlerManager
return $array;
}
/**
* @return array
*/
public static function dump(): array
{
$array = [];
foreach (static::$handlers as $path => $handlers) {
$array[] = [
'path' => $path,
'method' => implode(',', array_keys($handlers))
];
}
return $array;
}
}