summaryrefslogtreecommitdiff
path: root/classes/handler.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2023-10-25 12:55:09 +0300
committerAndrew Dolgov <fox@fakecake.org>2023-10-25 12:55:09 +0300
commit865ecc87963dc3b26e66296616eef2a1cc41ac3f (patch)
treebf2ecd8a391103bdb2c8b70cd33c47467310754b /classes/handler.php
parent0a5507d3bd79d04c860455664f919bf8e7274fda (diff)
move to psr-4 autoloader
Diffstat (limited to 'classes/handler.php')
-rw-r--r--classes/handler.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/classes/handler.php b/classes/handler.php
deleted file mode 100644
index 5b54570d8..000000000
--- a/classes/handler.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-class Handler implements IHandler {
- protected PDO $pdo;
-
- /** @var array<int|string, mixed> */
- protected array $args;
-
- /**
- * @param array<int|string, mixed> $args
- */
- function __construct(array $args) {
- $this->pdo = Db::pdo();
- $this->args = $args;
- }
-
- function csrf_ignore(string $method): bool {
- return false;
- }
-
- function before(string $method): bool {
- return true;
- }
-
- function after(): bool {
- return true;
- }
-
- /**
- * @param mixed $p
- */
- protected static function _param_to_bool($p): bool {
- $p = clean($p);
- return $p && ($p !== "f" && $p !== "false");
- }
-}