Remove unused file

pull/4020/head^2
Julio 3 years ago
parent 421268c348
commit eaf0a372f3
  1. 1
      config/packages/security.yaml
  2. 25
      src/CoreBundle/Security/AccessDeniedHandler.php

@ -111,7 +111,6 @@ security:
path: /logout path: /logout
target: / target: /
switch_user: true switch_user: true
# access_denied_handler: Chamilo\CoreBundle\Security\AccessDeniedHandler
json_login: json_login:
check_path: /login_json check_path: /login_json
# username_path: security.credentials.login # username_path: security.credentials.login

@ -1,25 +0,0 @@
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Security;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface;
class AccessDeniedHandler implements AccessDeniedHandlerInterface
{
public function handle(Request $request, AccessDeniedException $accessDeniedException)
{
$data = [
'error' => 'AccessDeniedHandler',
];
return new JsonResponse($data, Response::HTTP_FORBIDDEN, [], true);
}
}
Loading…
Cancel
Save