mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
mvc:Dispatcher - add missing getActionName for backwards compatibility with Phalcon. closes https://github.com/opnsense/core/issues/7490
This commit is contained in:
parent
2bf308f328
commit
1a282d1184
@ -59,6 +59,16 @@ class Dispatcher
|
||||
$this->parameters = $parameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* XXX: rename to getMethodName when phalcon is removed and return plain $this->action,
|
||||
* next cleanup ApiControllerBase.
|
||||
* @return string action name
|
||||
*/
|
||||
public function getActionName()
|
||||
{
|
||||
return substr($this->action,0, strlen($this->action)-6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve controller class and inspect method to call, except when the target controller offers a __call
|
||||
* hook in which case we expect the target to offer proper error handling
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user