尝试从全局命名空间加载类"IntlTimeZone"

ner*_*rkn 1 timezone internationalization php-extension php-7

当我第一次安装symfony应用程序时,它大声失败并出现错误:

HTTP 500 Internal Server Error
Attempted to load class "IntlTimeZone" from the global namespace.
Did you forget a "use" statement?
Run Code Online (Sandbox Code Playgroud)

怎么解决?

ner*_*rkn 5

可以修复安装,缺少的php模块.在我的情况下ubuntu 16与PHP 7.2:

sudo apt-get install php7.2-intl
Run Code Online (Sandbox Code Playgroud)