public static function init(\DocumentParser $modx, Template $tpl, \MODxAPI $classTable) { self::setMODX($modx); self::$TPL = Template::showLog(); self::$_tplObj = $tpl; self::$classTable = $classTable; }