Skip to content

Commit

Permalink
feat: 权限列表列出继承的路由
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed May 22, 2019
1 parent f734027 commit a5c3e57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/helpers/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ private static function getClassMethods($controller, $prefix)
$methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);
foreach ($methods as $method) {
$name = $method->getName();
if ($method->class == $controller &&
!$method->isStatic() &&
if (!$method->isStatic() &&
strpos($name, 'action') === 0 &&
$name !== 'actions'
) {
Expand Down

0 comments on commit a5c3e57

Please sign in to comment.