public function __construct(Request $request, array $member_id) { self::$_request = $request; self::$config = (include ST_DIR . '/config.php'); self::$_routing = (include ST_DIR . '/routing.php'); self::$_user = (object) $member_id; $this->_tpl = $tpl; if (empty($this->_user->user_id)) { self::$_user->user_id = 0; self::$_user->user_group = 5; } self::$_user->ip_address = $_SERVER['REMOTE_ADDR']; $this->eventManager = Events::getInstance(); $this->addToBreadcrumbs($GLOBALS['config']['home_title'], $GLOBALS['config']['http_home_url']); $this->configure(); }