diff --git a/composer.json b/composer.json index 4d412a5..4c9d2b3 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,6 @@ "vimeo/psalm": "^4.30|^5.7", "yiisoft/di": "^1.2", "yiisoft/dummy-provider": "^1.0", - "yiisoft/router": "^3.0", "yiisoft/test-support": "^3.0" }, "autoload": { diff --git a/src/Temp/RouteArgument.php b/src/Temp/RouteArgument.php deleted file mode 100644 index e75157b..0000000 --- a/src/Temp/RouteArgument.php +++ /dev/null @@ -1,31 +0,0 @@ -name; - } - - public function getResolver(): string - { - return RouteArgumentResolver::class; - } -} diff --git a/src/Temp/RouteArgumentResolver.php b/src/Temp/RouteArgumentResolver.php deleted file mode 100644 index 1876683..0000000 --- a/src/Temp/RouteArgumentResolver.php +++ /dev/null @@ -1,45 +0,0 @@ -currentRoute->getArguments(); - - $name = $attribute->getName() ?? $context->getParameter()->getName(); - - if (array_key_exists($name, $arguments)) { - return Result::success($arguments[$name]); - } - - return Result::fail(); - } -}