about summary refs log tree commit diff stats
path: root/classes/MiddlewareInterface.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-24 14:16:07 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-24 14:16:07 +0300
commit1bdf80397c19362c019cdd231e8813e251764370 (patch)
tree126c1e0ffcc5664ac2b5883bec64007070411a9b /classes/MiddlewareInterface.php
parent1917ab77550613654620b6f5d4ad8570704246de (diff)
downloadthe-epube-1bdf80397c19362c019cdd231e8813e251764370.tar.gz
the-epube-1bdf80397c19362c019cdd231e8813e251764370.tar.xz
switch to PSR-4 router with namespaced handlers
Diffstat (limited to 'classes/MiddlewareInterface.php')
-rw-r--r--classes/MiddlewareInterface.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/MiddlewareInterface.php b/classes/MiddlewareInterface.php
new file mode 100644
index 0000000..ae1949e
--- /dev/null
+++ b/classes/MiddlewareInterface.php
@@ -0,0 +1,6 @@
+<?php
+
+interface MiddlewareInterface
+{
+    public function process(Request $request, callable $next): Response;
+}