feature #25772 [Security] The AuthenticationException should implements Security's ExceptionInterface (sroze)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[Security] The AuthenticationException should implements Security's ExceptionInterface

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #25770
| License       | MIT
| Doc PR        | ø

Dunno why this is the case right now but this probably should not. Was reported by @paq85.

Commits
-------

0ee4cf1019 The Security Component's exceptions should implements Security's ExceptionInterface
This commit is contained in:
Fabien Potencier 2018-02-07 06:07:12 +01:00
commit 389676c05e
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ namespace Symfony\Component\Security\Core\Exception;
* *
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
*/ */
class AccessDeniedException extends \RuntimeException class AccessDeniedException extends RuntimeException
{ {
private $attributes = array(); private $attributes = array();
private $subject; private $subject;

View File

@ -19,7 +19,7 @@ use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
* @author Alexander <iam.asm89@gmail.com> * @author Alexander <iam.asm89@gmail.com>
*/ */
class AuthenticationException extends \RuntimeException implements \Serializable class AuthenticationException extends RuntimeException implements \Serializable
{ {
private $token; private $token;

View File

@ -16,7 +16,7 @@ namespace Symfony\Component\Security\Core\Exception;
* *
* @author Jeremy Mikola <jmikola@gmail.com> * @author Jeremy Mikola <jmikola@gmail.com>
*/ */
class LogoutException extends \RuntimeException class LogoutException extends RuntimeException
{ {
public function __construct(string $message = 'Logout Exception', \Exception $previous = null) public function __construct(string $message = 'Logout Exception', \Exception $previous = null)
{ {