symfony框架中存在一些问题,请任何人解决并帮助我。
Error is=
Catchable Fatal Error: Argument 2 passed to Symfony\Component\Routing\Route::__construct() must be of the type array, string given, called in
Symfony是一个框架,经常将其与教义相关联。由于您对通过名称和密码从信息表中选择数据库记录感兴趣,因此您将需要创建一个Doctrine实体类和一个存储库:
https://symfonycasts.com/screencast/symfony-doctrine/create-entity
然后您将能够使用过滤器选择记录。
您的第二个问题是关于路由。您将需要正确设置您的应用程序。