在使用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
如何解决此错误
答案 0 :(得分:1)
尝试在config/packages/security.yaml
中更改以下几行:
security:
...
encoders:
Sylius\Component\User\Model\UserInterface:
algorithm: sha512
argon2i : sha512