由于我将我的项目从symfony 4.4更新到5.0,所以在我的所有页面上都有下面的弃用警告(只有警告):
请安装"intl“PHP扩展以获得最佳性能。
在搜索解决方案之后,我认为需要安装intl组件,我这样做了:
composer require symfony/intl
我还安装了symfony/translation组件:
composer require symfony/translation
问题是反对意见仍然存在(即使在bin/console cache:clear和重新启动symfony serve之后)。
发布于 2020-10-15 01:50:20
您需要安装intl PHP扩展而不是Symfony组件symfony/intl。
请参阅您的操作系统上的安装手册。例如Ubuntu/Debian
sudo apt-get install php-intl检查是否安装了分机
php -m | grep intl
intl # must be printed this line with extension name此扩展https://www.php.net/manual/en/intl.installation.php的正式文档页
https://stackoverflow.com/questions/64363124
复制相似问题