Update from Symfony 5.3, remove unused code

pull/3904/head
Julio Montoya 4 years ago
parent 94c3182f26
commit 875debb784
  1. 3
      config/packages/dev/web_profiler.yaml
  2. 12
      config/packages/prod/doctrine.yaml
  3. 2
      config/packages/prod/monolog.yaml
  4. 22
      src/CoreBundle/Controller/SecurityController.php

@ -2,5 +2,4 @@ web_profiler:
toolbar: true
intercept_redirects: false
framework:
profiler:
only_exceptions: false
profiler: { only_exceptions: false }

@ -11,18 +11,6 @@ doctrine:
type: pool
pool: doctrine.result_cache_pool
#services:
# doctrine.result_cache_provider:
# class: Symfony\Component\Cache\DoctrineProvider
# public: false
# arguments:
# - '@doctrine.result_cache_pool'
# doctrine.system_cache_provider:
# class: Symfony\Component\Cache\DoctrineProvider
# public: false
# arguments:
# - '@doctrine.system_cache_pool'
framework:
cache:
pools:

@ -8,7 +8,7 @@ monolog:
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
path: php://stderr
level: debug
formatter: monolog.formatter.json
console:

@ -24,31 +24,11 @@ class SecurityController extends AbstractController
$this->serializer = $serializer;
}
/**
* Route("/login", name="login").
*/
//public function login(AuthenticationUtils $authenticationUtils): Response
//{
//$error = $authenticationUtils->getLastAuthenticationError();
//$lastUsername = $authenticationUtils->getLastUsername();
/** @var User */
/*$user = $this->getUser();
$data = [];
if ($user) {
$userClone = clone $user;
$userClone->setPassword('');
$data = $this->serializer->serialize($userClone, JsonEncoder::FORMAT);
}
return new JsonResponse($data, Response::HTTP_OK, [], true);*/
//}
/**
* @Route("/login_json", name="login_json")
*/
public function loginJson(AuthenticationUtils $authenticationUtils): Response
{
{error_log('loginJson');
//$error = $authenticationUtils->getLastAuthenticationError();
//$lastUsername = $authenticationUtils->getLastUsername();

Loading…
Cancel
Save