symfony 4 security.yaml 丢失

0 symfony4

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

但是所有本教程都是基于我的项目中不存在的 security.yaml 文件,当我手动添加它时,我遇到了错误,我的应用程序有点冻结......所以我应该做什么?

我必须准确地下载“骨架”架构。

谢谢你的回答。

小智 6

尝试以下命令:

composer remove security-bundle
composer require security-bundle
Run Code Online (Sandbox Code Playgroud)

现在应该可以工作了;)

谢谢 !祝你好运 !