【问题标题】:There are no configured encoders for the "security" extension没有为“安全”扩展配置编码器
【发布时间】:2021-07-29 19:51:39
【问题描述】:

当我启动这个命令时

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],

有人有想法吗?提前谢谢

【问题讨论】:

    标签: symfony4 symfony-4.4


    【解决方案1】:

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

    security:
       App\Entity\User:
            alogithm: auto
    

    【讨论】:

      猜你喜欢
      • 2019-08-12
      • 1970-01-01
      • 1970-01-01
      • 2012-11-16
      • 2019-08-24
      • 2016-07-03
      • 2012-08-08
      • 2013-02-24
      • 2012-04-22
      相关资源
      最近更新 更多