From 5b42abf081c4aa34336490532a14691fe90d3cc6 Mon Sep 17 00:00:00 2001 From: Sergei Shitikov Date: Thu, 24 Oct 2024 19:55:06 +0200 Subject: [PATCH] Added missing HttpMethod enum --- src/Container/HttpMethod.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Container/HttpMethod.php diff --git a/src/Container/HttpMethod.php b/src/Container/HttpMethod.php new file mode 100644 index 0000000..628f5d4 --- /dev/null +++ b/src/Container/HttpMethod.php @@ -0,0 +1,28 @@ + self::GET, + 'POST' => self::POST, + 'PUT' => self::PUT, + 'DELETE' => self::DELETE, + 'HEAD' => self::HEAD, + 'OPTIONS' => self::OPTIONS, + default => throw new \InvalidArgumentException("Invalid HTTP method: $method"), + }; + } +}