The Security Component's exceptions should implements Security's ExceptionInterface

This commit is contained in:
Samuel ROZE 2018-01-11 17:28:37 +00:00
parent 1e90ddd00d
commit 0ee4cf1019
No known key found for this signature in database
GPG Key ID: 835426F55A19FB84
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)
{ {