Skip to content

变量文件导致性能请求超过30秒或直接打不开该文件问题 #18

@dzz2013

Description

@dzz2013
<?php

namespace App\Enums\Language;

use Jiannei\Enum\Laravel\Contracts\LocalizedEnumContract;
use Jiannei\Enum\Laravel\Enum;

final class LanguageEnum extends Enum implements LocalizedEnumContract
{
    const AF = 'af';
    const AM = 'am';
    const AR = 'ar';
    const AZ = 'az';
    const BE = 'be';
    const BG = 'bg';
    const BN = 'bn';
    const BS = 'bs';
    const CA = 'ca';
    const CEB = 'ceb';
    const CO = 'co';
    const CS = 'cs';
    const CY = 'cy';
    const DA = 'da';
    const DE = 'de';
    const EL = 'el';
    const EN = 'en';
    const EO = 'eo';
    const ES = 'es';
    const ET = 'et';
    const EU = 'eu';
    const FA = 'fa';
    const FI = 'fi';
    const FR = 'fr';
    const FY = 'fy';
    const GA = 'ga';
    const GD = 'gd';
    const GL = 'gl';
    const GU = 'gu';
    const HA = 'ha';
    const HAW = 'haw';
    const HI = 'hi';
    const HMN = 'hmn';
    const HR = 'hr';
    const HT = 'ht';
    const HU = 'hu';
    const HY = 'hy';
    const ID = 'id';
    const IG = 'ig';
    const IS = 'is';
    const IT = 'it';
    const IW = 'iw';
    const JA = 'ja';
    const JV = 'jw';
    const KA = 'ka';
    const KK = 'kk';
    const KM = 'km';
    const KN = 'kn';
    const KO = 'ko';
    const KU = 'ku';
    const KY = 'ky';
    const LA = 'la';
    const LB = 'lb';
    const LO = 'lo';
    const LT = 'lt';
    const LV = 'lv';
    const MG = 'mg';
    const MI = 'mi';
    const MK = 'mk';
    const ML = 'ml';
    const MN = 'mn';
    const MR = 'mr';
    const MS = 'ms';
    const MT = 'mt';
    const MY = 'my';
    const NE = 'ne';
    const NL = 'nl';
    const NO = 'no';
    const NY = 'ny';
    const PA = 'pa';
    const PL = 'pl';
    const PS = 'ps';
    const PT = 'pt';
    const RO = 'ro';
    const RU = 'ru';
    const SD = 'sd';
    const SI = 'si';
    const SK = 'sk';
    const SL = 'sl';
    const SM = 'sm';
    const SN = 'sn';
    const SO = 'so';
    const SQ = 'sq';
    const SR = 'sr';
    const ST = 'st';
    const SU = 'su';
    const SV = 'sv';
    const SW = 'sw';
    const TA = 'ta';
    const TE = 'te';
    const TG = 'tg';
    const TH = 'th';
    const TL = 'tl';
    const TR = 'tr';
    const UK = 'uk';
    const UR = 'ur';
    const UZ = 'uz';
    const VI = 'vi';
    const XH = 'xh';
    const YI = 'yi';
    const YO = 'yo';
    const ZH_CN = 'zh-cn';
    const ZH_TW = 'zh-tw';
    const ZU = 'zu';
}

这是一个变量文件,行数也不是很多,但就这个文件会有时候会导致本地win服务在请求接口时,超过30秒没反应,所有接口请求不了,并且有时在win直接使用notepad++或微软自带有txt文本工具也不打不开, vscode也打不开该该文件
使用的版本为
"jiannei/laravel-enum": "^3.0",
"jiannei/laravel-response": "^5.2",
"laravel/framework": "^10.10",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions