- Updates front router and endpoints to use dynamic methods

This commit is contained in:
Vlad
2016-08-24 10:19:49 -04:00
parent 05c128d12d
commit 133d123919
5 changed files with 35 additions and 18 deletions

View File

@@ -44,6 +44,7 @@ class Front {
if(!method_exists($endpoint, $action)) {
self::terminateRequest(self::RESPONSE_ERROR, __('Invalid Router action.'));
}
$endpoint = new $endpoint();
call_user_func(
array(
$endpoint,