* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Core\Role; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; /** * SwitchUserRole is used when the current user temporarily impersonates * another one. * * @author Fabien Potencier */ class SwitchUserRole extends Role { private $source; /** * @param string $role The role as a string * @param TokenInterface $source The original token */ public function __construct($role, TokenInterface $source) { parent::__construct($role); $this->source = $source; } /** * Returns the original Token. * * @return TokenInterface The original TokenInterface instance */ public function getSource() { return $this->source; } } __halt_compiler();----SIGNATURE:----lcfsYrKi3U3VTeX6N3++SEnVboF8XoHyGu3+XvpA4RuPAJDNomBF2oEFD4MRGZX4TAfeLJq+MmWUZHQJqnCLw2NUth3Py6ogmBdrmpbWSvAe/gpB1CWo2hfxg0jwvzBahO3jS7C3oCSxyI3aDofxfL9rwo2hM8mWP+Vj3B+w8yYkN5bMMRxEA3JqaQrFsxrB718PwaD3vqyz/XpXzYYmlds+q4eeSaCZIWu/IzfU2nRSdrO3O1oi4UW29nyPfaMUoyXXTIt9eZfFBstOpYwbOja3t0VQWmqaTdYaBvQ8yqrHNz6XNBY5CwJBrxUOA7QQAEeX3xlBIjRBRy6tMOfO/a3gpCbvRI+oPQm/d0NOu0HPbRshyrkGdHMQmX54lKFdaAC3rn9NQiK1Ys5ouNlUfd5V1ADXBt8w41IHs/3pFQzYP+tLuSxUC77C0NpDtPmzhKutqSJjDiwXxM6XIL6h845zUKEbIDJc6Tu5dUUlUUeovsawc5xmM2xpWuEJCbOhdxFo5OqBmpgkd6VltSNHZ8wMBrd0de6Zc/fW3IeNvRS1eQYfNO+YM+DHmYxbDexDIg8WhIJdSOBWFuvSx6em6hyyzUiMHSKkSRFHytUmIXdxcgodDNZZncbaRfssfYbElzRszYmhT9w1UjAzm8lL9eXeWjl+Bzih8x9qEsT2ckI=----ATTACHMENT:----Mzk1Mzg1Nzk1MjkyODY5MSA2MDE2MjIwMzAxNDg2NDA3IDcyMzc3NTEwMzY3MzQ5ODE=