src/UserPanel/Modules/User/Controller/SecurityController.php line 20
<?phpnamespace App\UserPanel\Modules\User\Controller;use Symfony\Component\HttpFoundation\Request;use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;use App\Controller\BaseController;use App\UserPanel\Modules\User\Form\LoginType;use App\UserPanel\Modules\User\Form\RegistrationType;class SecurityController extends BaseController{private $_authenticationUtils;public function __construct(AuthenticationUtils $authenticationUtils){$this->_authenticationUtils = $authenticationUtils;}public function login(){$error = $this->_authenticationUtils->getLastAuthenticationError();$lastUsername = $this->_authenticationUtils->getLastUsername();$form = $this->createForm(LoginType::class);return $this->render('UserPanel/Modules/User/Templates/Security/login.html.twig', array('loginForm' => $form->createView(),'registerForm' => $this->createForm(RegistrationType::class),'loginError' => $error,'activeTab' => 'login'));}}