我想在Symfony4中配置身份验证。当我尝试使用php bin/console make:auth
生成登录表单时,控制台返回
Argument 1 passed to Symfony\Bundle\MakerBundle\Validator::classExists() must be of the type string,
null given, called in C:\xampp\htdocs\Composer\bakery\vendor\symfony\maker-bundle\src\Validator.php
当我不使用控制台进行操作时,只能通过以下方式创建:
src/Security/LoginFormAuthenticator.php
config/packages/security.yaml
src/Controller/SecurityController.php
templates/security/login.html.twig
我自己也出现了相同的错误。是在几周前,我认为这是我尝试登录的时间,错误记录在日志中。