如何修复Sylius安装中的argon2i错误?

时间:2020-04-10 08:42:03

标签: sylius

在使用composer安装结束时,出现此错误:

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!  
!!  In SecurityExtension.php line 561:
!!                                                                                 
!!    Algorithm "argon2i" is not available. Either use "argon2id", "auto" or upgr  
!!    ade to PHP 7.2+ instead.                                                     
!!                                                                                 
!!  
!!  
Script @auto-scripts was called via post-install-cmd

我在Mac和Catalina OS上使用

XAMPP

PHP 7.2.29

如何解决此错误

1 个答案:

答案 0 :(得分:1)

尝试在config/packages/security.yaml中更改以下几行:

security:
    ...
    encoders:
        Sylius\Component\User\Model\UserInterface:
            algorithm: sha512
        argon2i  : sha512

source

相关问题