mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 13:32:16 +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']);
|
$permission_info->check_type = trim($action['check_type']) ?: trim($action['check-type']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse routes.
|
// Parse the list of allowed HTTP methods.
|
||||||
$route_attr = trim($action['route']);
|
|
||||||
$route_tags = $action->route ?: [];
|
|
||||||
$method_attr = trim($action['method']);
|
$method_attr = trim($action['method']);
|
||||||
if ($method_attr)
|
if ($method_attr)
|
||||||
{
|
{
|
||||||
|
|
@ -110,6 +108,10 @@ class ModuleActionParser extends BaseParser
|
||||||
{
|
{
|
||||||
$methods = ['GET', 'POST'];
|
$methods = ['GET', 'POST'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Parse routes.
|
||||||
|
$route_attr = trim($action['route']);
|
||||||
|
$route_tags = $action->route ?: [];
|
||||||
$route_arg = [];
|
$route_arg = [];
|
||||||
if ($route_attr || count($route_tags))
|
if ($route_attr || count($route_tags))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue