public function whitelistFunction($type, $functionName)
    {

        if (isset($this->alias[$type])) {

            foreach ($this->alias[$type] as $target) {
                call_user_func_array([$this, "whitelistFunction"], array_merge([$target], array_slice(func_get_args(), 1)));
            }
            return;
        }

        $first = true;
        foreach (func_get_args() as $arg) {
            if ($first) {
                $first = false;
                continue;
            }
            $this->functionWhitelist[$type][] = $arg;
        }


    }