Skip to content

Commit

Permalink
注解路由无法解析问题
Browse files Browse the repository at this point in the history
1.1.0和1.1.1版本注解路由无法正常解析,在`InteractsWithRoute.php`第54行!
  • Loading branch information
jingyifeng authored and yunwuxin committed Apr 4, 2020
1 parent 463b787 commit 98c6dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InteractsWithRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function registerAnnotationRoute()

protected function scanDir($dir)
{
foreach (ClassMapGenerator::createMap($dir) as $class) {
foreach (ClassMapGenerator::createMap($dir) as $class=>$path) {
$refClass = new ReflectionClass($class);
$routeGroup = false;
$routeMiddleware = [];
Expand Down

0 comments on commit 98c6dbd

Please sign in to comment.