Fix PHP warning

pull/3890/head
Julio Montoya 4 years ago
parent 26fc155671
commit 8631fb21c2
  1. 6
      src/CoreBundle/Controller/SecurityController.php
  2. 2
      tests/phpstan/doctrine-orm-bootstrap.php

@ -27,8 +27,8 @@ class SecurityController extends AbstractController
/**
* Route("/login", name="login").
*/
public function login(AuthenticationUtils $authenticationUtils): Response
{
//public function login(AuthenticationUtils $authenticationUtils): Response
//{
//$error = $authenticationUtils->getLastAuthenticationError();
//$lastUsername = $authenticationUtils->getLastUsername();
@ -42,7 +42,7 @@ class SecurityController extends AbstractController
}
return new JsonResponse($data, Response::HTTP_OK, [], true);*/
}
//}
/**
* @Route("/login_json", name="login_json")

@ -4,7 +4,7 @@ use Chamilo\Kernel;
require dirname(__DIR__).'/../vendor/autoload.php';
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$kernel = new Kernel('dev', true);
$kernel->boot();
return $kernel->getContainer()->get('doctrine')->getManager();

Loading…
Cancel
Save