我有一个在loginAction,看起来像这样要求的值
Controller "SystemBundle\Controller\SystemController::loginAction()" requires that you provide a value for the "$request" argument (because there is no default value or because there is a non optional argument after this one).
以下是路由:
system_login:
path: /login
defaults: { _controller: SystemBundle:System:login}
和形式:
<form method="POST" id="lgn" action="{{ path('system_login') }}">
<span class="fa fa-times close" onclick="lgn()" ></span><br />
<span>Login:</span>
<input type="email" placeholder="Email" required="required" name="umail" />
<input type="password" placeholder="Password" required="required" name="upass" />
<button type="submit">login</button>
</form>
请帮助...
您是否正确导入Symfony \ Component \ HttpFoundation \ Request类? –