缺少 symfony 4 security.yaml

symfony 4 security.yaml is missing

我最近在 symfony 4 中开始了一个项目,所以我想制作一个登录页面,我实际上遵循了那里的所有安全流程 => https://symfony.com/doc/current/security.html#create-user-class

但是本教程的所有内容都基于我的项目中不存在的 security.yaml 文件,当我手动添加它时出现错误,我的应用程序有点死机...所以我该怎么办?

我必须准确地下载 "skeleton" 架构。

感谢您的回答。

尝试以下命令:

composer remove security-bundle
composer require security-bundle

现在应该可以工作了 ;)

谢谢! 祝你好运!