Skip to content

Commit c387d7d

Browse files
Merge branch '2.8' into 3.4
* 2.8: Alpha-ordering for "use" statements
2 parents 18cac11 + 91c181a commit c387d7d

File tree

58 files changed

+168
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+168
-168
lines changed

AccessMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Security\Http;
1313

14-
use Symfony\Component\HttpFoundation\RequestMatcherInterface;
1514
use Symfony\Component\HttpFoundation\Request;
15+
use Symfony\Component\HttpFoundation\RequestMatcherInterface;
1616

1717
/**
1818
* AccessMap allows configuration of different access control rules for

Authentication/AuthenticationFailureHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\Security\Http\Authentication;
1313

14-
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1514
use Symfony\Component\HttpFoundation\Request;
1615
use Symfony\Component\HttpFoundation\Response;
16+
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1717

1818
/**
1919
* Interface for custom authentication failure handlers.

Authentication/AuthenticationSuccessHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\Security\Http\Authentication;
1313

14-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1514
use Symfony\Component\HttpFoundation\Request;
1615
use Symfony\Component\HttpFoundation\Response;
16+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1717

1818
/**
1919
* Interface for a custom authentication success handler.

Authentication/CustomAuthenticationSuccessHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Security\Http\Authentication;
1313

14-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1514
use Symfony\Component\HttpFoundation\Request;
15+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1616

1717
/**
1818
* @author Fabien Potencier <[email protected]>

Authentication/DefaultAuthenticationFailureHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\Security\Http\Authentication;
1313

14+
use Psr\Log\LoggerInterface;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\HttpKernel\HttpKernelInterface;
16-
use Psr\Log\LoggerInterface;
1717
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1818
use Symfony\Component\Security\Core\Security;
1919
use Symfony\Component\Security\Http\HttpUtils;

Authentication/DefaultAuthenticationSuccessHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace Symfony\Component\Security\Http\Authentication;
1313

14-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1514
use Symfony\Component\HttpFoundation\Request;
16-
use Symfony\Component\Security\Http\Util\TargetPathTrait;
15+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1716
use Symfony\Component\Security\Http\HttpUtils;
1817
use Symfony\Component\Security\Http\ParameterBagUtils;
18+
use Symfony\Component\Security\Http\Util\TargetPathTrait;
1919

2020
/**
2121
* Class with the default authentication success handling logic.

Authentication/SimpleAuthenticationHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Component\Security\Http\Authentication;
1313

14+
use Psr\Log\LoggerInterface;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\HttpFoundation\Response;
16-
use Psr\Log\LoggerInterface;
17-
use Symfony\Component\Security\Core\Exception\AuthenticationException;
18-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1917
use Symfony\Component\Security\Core\Authentication\SimpleAuthenticatorInterface;
18+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
19+
use Symfony\Component\Security\Core\Exception\AuthenticationException;
2020

2121
/**
2222
* Class to proxy authentication success/failure handlers.

EntryPoint/AuthenticationEntryPointInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\Security\Http\EntryPoint;
1313

14-
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1514
use Symfony\Component\HttpFoundation\Request;
1615
use Symfony\Component\HttpFoundation\Response;
16+
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1717

1818
/**
1919
* Implement this interface for any classes that will be called to "start"

EntryPoint/BasicAuthenticationEntryPoint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\Security\Http\EntryPoint;
1313

14-
use Symfony\Component\Security\Core\Exception\AuthenticationException;
15-
use Symfony\Component\HttpFoundation\Response;
1614
use Symfony\Component\HttpFoundation\Request;
15+
use Symfony\Component\HttpFoundation\Response;
16+
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1717

1818
/**
1919
* BasicAuthenticationEntryPoint starts an HTTP Basic authentication.

EntryPoint/DigestAuthenticationEntryPoint.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace Symfony\Component\Security\Http\EntryPoint;
1313

14+
use Psr\Log\LoggerInterface;
15+
use Symfony\Component\HttpFoundation\Request;
16+
use Symfony\Component\HttpFoundation\Response;
1417
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1518
use Symfony\Component\Security\Core\Exception\NonceExpiredException;
16-
use Symfony\Component\HttpFoundation\Response;
17-
use Symfony\Component\HttpFoundation\Request;
18-
use Psr\Log\LoggerInterface;
1919

2020
/**
2121
* DigestAuthenticationEntryPoint starts an HTTP Digest authentication.

EntryPoint/FormAuthenticationEntryPoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace Symfony\Component\Security\Http\EntryPoint;
1313

1414
use Symfony\Component\HttpFoundation\Request;
15+
use Symfony\Component\HttpKernel\HttpKernelInterface;
1516
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1617
use Symfony\Component\Security\Http\HttpUtils;
17-
use Symfony\Component\HttpKernel\HttpKernelInterface;
1818

1919
/**
2020
* FormAuthenticationEntryPoint starts an authentication via a login form.

EntryPoint/RetryAuthenticationEntryPoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\Security\Http\EntryPoint;
1313

14-
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1514
use Symfony\Component\HttpFoundation\RedirectResponse;
1615
use Symfony\Component\HttpFoundation\Request;
16+
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1717

1818
/**
1919
* RetryAuthenticationEntryPoint redirects URL based on the configured scheme.

Event/InteractiveLoginEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Security\Http\Event;
1313

14-
use Symfony\Component\HttpFoundation\Request;
1514
use Symfony\Component\EventDispatcher\Event;
15+
use Symfony\Component\HttpFoundation\Request;
1616
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1717

1818
/**

Event/SwitchUserEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Http\Event;
1313

14+
use Symfony\Component\EventDispatcher\Event;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1617
use Symfony\Component\Security\Core\User\UserInterface;
17-
use Symfony\Component\EventDispatcher\Event;
1818

1919
/**
2020
* SwitchUserEvent.

Firewall.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace Symfony\Component\Security\Http;
1313

14-
use Symfony\Component\HttpKernel\KernelEvents;
15-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
16-
use Symfony\Component\HttpKernel\Event\FinishRequestEvent;
1714
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1815
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
16+
use Symfony\Component\HttpKernel\Event\FinishRequestEvent;
17+
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
18+
use Symfony\Component\HttpKernel\KernelEvents;
1919

2020
/**
2121
* Firewall uses a FirewallMap to register security listeners for the given

Firewall/AbstractAuthenticationListener.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@
1111

1212
namespace Symfony\Component\Security\Http\Firewall;
1313

14-
use Symfony\Component\Security\Http\Session\SessionAuthenticationStrategyInterface;
15-
use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;
16-
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;
17-
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
18-
use Symfony\Component\Security\Core\Security;
14+
use Psr\Log\LoggerInterface;
15+
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
16+
use Symfony\Component\HttpFoundation\Request;
17+
use Symfony\Component\HttpFoundation\Response;
18+
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1919
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
2020
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
21+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
2122
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
2223
use Symfony\Component\Security\Core\Exception\AuthenticationException;
2324
use Symfony\Component\Security\Core\Exception\SessionUnavailableException;
24-
use Psr\Log\LoggerInterface;
25-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
26-
use Symfony\Component\HttpFoundation\Request;
27-
use Symfony\Component\HttpFoundation\Response;
28-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
29-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
25+
use Symfony\Component\Security\Core\Security;
26+
use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;
27+
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;
3028
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
31-
use Symfony\Component\Security\Http\SecurityEvents;
3229
use Symfony\Component\Security\Http\HttpUtils;
30+
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
31+
use Symfony\Component\Security\Http\SecurityEvents;
32+
use Symfony\Component\Security\Http\Session\SessionAuthenticationStrategyInterface;
3333

3434
/**
3535
* The AbstractAuthenticationListener is the preferred base class for all

Firewall/AbstractPreAuthenticatedListener.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111

1212
namespace Symfony\Component\Security\Http\Firewall;
1313

14+
use Psr\Log\LoggerInterface;
15+
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
16+
use Symfony\Component\HttpFoundation\Request;
17+
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1418
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
1519
use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken;
1620
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1721
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1822
use Symfony\Component\Security\Core\Exception\AuthenticationException;
23+
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
1924
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
2025
use Symfony\Component\Security\Http\SecurityEvents;
21-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
22-
use Psr\Log\LoggerInterface;
23-
use Symfony\Component\HttpFoundation\Request;
24-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
25-
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
2626
use Symfony\Component\Security\Http\Session\SessionAuthenticationStrategyInterface;
2727

2828
/**

Firewall/AccessListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
namespace Symfony\Component\Security\Http\Firewall;
1313

14-
use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface;
15-
use Symfony\Component\Security\Http\AccessMapInterface;
14+
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1615
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
1716
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
18-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
19-
use Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException;
17+
use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface;
2018
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
19+
use Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException;
20+
use Symfony\Component\Security\Http\AccessMapInterface;
2121

2222
/**
2323
* AccessListener enforces access control rules.

Firewall/AnonymousAuthenticationListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Component\Security\Http\Firewall;
1313

14-
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
15-
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
16-
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1714
use Psr\Log\LoggerInterface;
1815
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
16+
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
1917
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
18+
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
19+
use Symfony\Component\Security\Core\Exception\AuthenticationException;
2020

2121
/**
2222
* AnonymousAuthenticationListener automatically adds a Token if none is

Firewall/BasicAuthenticationListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111

1212
namespace Symfony\Component\Security\Http\Firewall;
1313

14+
use Psr\Log\LoggerInterface;
1415
use Symfony\Component\HttpFoundation\Request;
16+
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1517
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
1618
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1719
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
18-
use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
19-
use Psr\Log\LoggerInterface;
20-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
2120
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
2221
use Symfony\Component\Security\Core\Exception\AuthenticationException;
22+
use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
2323
use Symfony\Component\Security\Http\Session\SessionAuthenticationStrategyInterface;
2424

2525
/**

Firewall/ChannelListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Symfony\Component\Security\Http\Firewall;
1313

14-
use Symfony\Component\Security\Http\AccessMapInterface;
15-
use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
1614
use Psr\Log\LoggerInterface;
1715
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
16+
use Symfony\Component\Security\Http\AccessMapInterface;
17+
use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
1818

1919
/**
2020
* ChannelListener switches the HTTP protocol based on the access control

Firewall/ContextListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
namespace Symfony\Component\Security\Http\Firewall;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
15+
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
17+
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1718
use Symfony\Component\HttpKernel\KernelEvents;
1819
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
1920
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface;
2021
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
2122
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
2223
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
2324
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
24-
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
2525
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
26+
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
2627
use Symfony\Component\Security\Core\Role\SwitchUserRole;
2728
use Symfony\Component\Security\Core\User\UserInterface;
2829
use Symfony\Component\Security\Core\User\UserProviderInterface;
29-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
3030

3131
/**
3232
* ContextListener manages the SecurityContext persistence through a session.

Firewall/DigestAuthenticationListener.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111

1212
namespace Symfony\Component\Security\Http\Firewall;
1313

14-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
15-
use Symfony\Component\Security\Core\User\UserProviderInterface;
16-
use Symfony\Component\Security\Http\EntryPoint\DigestAuthenticationEntryPoint;
1714
use Psr\Log\LoggerInterface;
15+
use Symfony\Component\HttpFoundation\Request;
1816
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
19-
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
2017
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
21-
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
18+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
19+
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
20+
use Symfony\Component\Security\Core\Exception\AuthenticationException;
2221
use Symfony\Component\Security\Core\Exception\AuthenticationServiceException;
23-
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
22+
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
2423
use Symfony\Component\Security\Core\Exception\NonceExpiredException;
25-
use Symfony\Component\HttpFoundation\Request;
26-
use Symfony\Component\Security\Core\Exception\AuthenticationException;
24+
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
25+
use Symfony\Component\Security\Core\User\UserProviderInterface;
26+
use Symfony\Component\Security\Http\EntryPoint\DigestAuthenticationEntryPoint;
2727
use Symfony\Component\Security\Http\Session\SessionAuthenticationStrategyInterface;
2828

2929
/**

Firewall/ExceptionListener.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@
1111

1212
namespace Symfony\Component\Security\Http\Firewall;
1313

14+
use Psr\Log\LoggerInterface;
15+
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
16+
use Symfony\Component\HttpFoundation\Request;
1417
use Symfony\Component\HttpFoundation\Response;
15-
use Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface;
16-
use Symfony\Component\Security\Core\Security;
18+
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
19+
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
20+
use Symfony\Component\HttpKernel\HttpKernelInterface;
21+
use Symfony\Component\HttpKernel\KernelEvents;
1722
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface;
1823
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
19-
use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
24+
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
2025
use Symfony\Component\Security\Core\Exception\AccountStatusException;
2126
use Symfony\Component\Security\Core\Exception\AuthenticationException;
22-
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
2327
use Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException;
2428
use Symfony\Component\Security\Core\Exception\LogoutException;
25-
use Symfony\Component\Security\Http\Util\TargetPathTrait;
29+
use Symfony\Component\Security\Core\Security;
30+
use Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface;
31+
use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
2632
use Symfony\Component\Security\Http\HttpUtils;
27-
use Symfony\Component\HttpFoundation\Request;
28-
use Psr\Log\LoggerInterface;
29-
use Symfony\Component\HttpKernel\HttpKernelInterface;
30-
use Symfony\Component\HttpKernel\KernelEvents;
31-
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
32-
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
33-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
33+
use Symfony\Component\Security\Http\Util\TargetPathTrait;
3434

3535
/**
3636
* ExceptionListener catches authentication exception and converts them to

0 commit comments

Comments
 (0)