simplify webserver logic flow, remove obsolete $a from router

This commit is contained in:
zotlabs
2018-01-18 15:36:46 -08:00
parent 03d3cbdbf8
commit 858a6270d5
2 changed files with 49 additions and 36 deletions

View File

@@ -38,10 +38,9 @@ class Router {
/**
* @brief Router constructor.
*
* @param[in,out] App &$a
* @throws Exception module not found
*/
function __construct(&$a) {
function __construct() {
$module = \App::$module;
$modname = "Zotlabs\\Module\\" . ucfirst($module);
@@ -179,9 +178,8 @@ class Router {
/**
* @brief
*
* @param[in,out] App &$a
*/
function Dispatch(&$a) {
function Dispatch() {
/**
* Call module functions