问题描述
当我启动这个命令时
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;