This commit is contained in:
2023-12-12 14:06:41 +08:00
parent ae8780103a
commit 968d572e84
+7 -9
View File
@@ -61,7 +61,7 @@ class Router
/** /**
* @param string $route * @param string $route
* @param string $handler * @param string $handler
* @throws ReflectionException * @throws
*/ */
public static function post(string $route, string $handler): void public static function post(string $route, string $handler): void
{ {
@@ -72,7 +72,7 @@ class Router
/** /**
* @param string $route * @param string $route
* @param string $handler * @param string $handler
* @throws ReflectionException * @throws
*/ */
public static function get(string $route, string $handler): void public static function get(string $route, string $handler): void
{ {
@@ -107,7 +107,7 @@ class Router
/** /**
* @param string $route * @param string $route
* @param string $handler * @param string $handler
* @throws ReflectionException * @throws
*/ */
public static function delete(string $route, string $handler): void public static function delete(string $route, string $handler): void
{ {
@@ -119,7 +119,7 @@ class Router
/** /**
* @param string $route * @param string $route
* @param string $handler * @param string $handler
* @throws ReflectionException * @throws
*/ */
public static function head(string $route, string $handler): void public static function head(string $route, string $handler): void
{ {
@@ -131,7 +131,7 @@ class Router
/** /**
* @param string $route * @param string $route
* @param string $handler * @param string $handler
* @throws ReflectionException * @throws
*/ */
public static function put(string $route, string $handler): void public static function put(string $route, string $handler): void
{ {
@@ -144,7 +144,7 @@ class Router
* @param array|RequestMethod $methods * @param array|RequestMethod $methods
* @param string $route * @param string $route
* @param array|string $handler * @param array|string $handler
* @throws ReflectionException * @throws
*/ */
public static function addRoute(array|RequestMethod $methods, string $route, array|string $handler): void public static function addRoute(array|RequestMethod $methods, string $route, array|string $handler): void
{ {
@@ -190,9 +190,7 @@ class Router
/** /**
* @param ContainerInterface $container * @param ContainerInterface $container
* @return void * @return void
* @throws ReflectionException * @throws
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/ */
public function reset(ContainerInterface $container): void public function reset(ContainerInterface $container): void
{ {