public static function encode($content, $type, array $config = []) { self::init($type); return self::$handler[$type]->encode($content, $config); }