Source of file AuthenticationException.php
Size: 1,810 Bytes - Last Modified: 2013-07-17T08:22:21+02:00
/home/theseer/Downloads/Symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 | <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Core\Exception; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; /** * AuthenticationException is the base class for all authentication exceptions. * * @author Fabien Potencier <fabien@symfony.com> * @author Alexander <iam.asm89@gmail.com> */ class AuthenticationException extends \RuntimeException implements \Serializable { private $token; /** * Get the token. * * @return TokenInterface */ public function getToken() { return $this->token; } /** * Set the token. * * @param TokenInterface $token */ public function setToken(TokenInterface $token) { $this->token = $token; } public function serialize() { return serialize(array( $this->token, $this->code, $this->message, $this->file, $this->line, )); } public function unserialize($str) { list( $this->token, $this->code, $this->message, $this->file, $this->line ) = unserialize($str); } /** * Message key to be used by the translation component. * * @return string */ public function getMessageKey() { return 'An authentication exception occurred.'; } /** * Message data to be used by the translation component. * * @return array */ public function getMessageData() { return array(); } } |