mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Reorganize method/route parser order
This commit is contained in:
parent
c920f6dca4
commit
325ace58e0
1 changed files with 5 additions and 3 deletions
|
|
@ -90,9 +90,7 @@ class ModuleActionParser extends BaseParser
|
|||
$permission_info->check_type = trim($action['check_type']) ?: trim($action['check-type']);
|
||||
}
|
||||
|
||||
// Parse routes.
|
||||
$route_attr = trim($action['route']);
|
||||
$route_tags = $action->route ?: [];
|
||||
// Parse the list of allowed HTTP methods.
|
||||
$method_attr = trim($action['method']);
|
||||
if ($method_attr)
|
||||
{
|
||||
|
|
@ -110,6 +108,10 @@ class ModuleActionParser extends BaseParser
|
|||
{
|
||||
$methods = ['GET', 'POST'];
|
||||
}
|
||||
|
||||
// Parse routes.
|
||||
$route_attr = trim($action['route']);
|
||||
$route_tags = $action->route ?: [];
|
||||
$route_arg = [];
|
||||
if ($route_attr || count($route_tags))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue