“安全”扩展没有配置的编码器

问题描述

当我启动这个命令时

php bin/console security:encode-password

我收到此错误

There are no configured encoders for the "security" extension. 

有人知道这个错误吗,我使用的是 Symfony 4 在 bundles.php 中,我激活了安全包

Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],

有人有想法吗?提前致谢

解决方法

我已经解决了这个问题。要修复它,请尝试向您的 security.yaml 添加一个编码器:


SELECT ORDINAL_POSITION,PARAMETER_MODE,PARAMETER_NAME,DTD_IDENTIFIER
FROM information_schema.parameters
WHERE specific_name = routine_name;

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...