* * 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:----bt3ZiR1DZkuYhjZdEm692/nK3pAOGwUMfsflILGy3W6GTQhAYixuh9dwGIHSDv+bCPb+CWPvJNJdyaPmzcxfwaRNPBfleGdDhh8f1aEh2k+zncIsKFnH9V3SiT9SRM/KV/DmTV1PlLLwqHbRVfs8WtqAmaSDZrkyB/7fbmwowjhCnLKpbGMoMQuATCJJN5vWu/s888KEcOHULc+drNXfpd0i96rVFNDPkaULX7m1zIWkuqBiaed/Zu+g+ZOJx9Rpk/BC0Huwac1jSLrYToQ85fb3oDRaOz3nAL5cFQuIYsPV72AIy7lcgl7TIXD+9GltS4lSV3MasRZqf9CBRggz1JZI04Q5HOT/sZWwjCenQEv4iFo1UdDTCUxMrjJGHRw5k6p/BOSujxsnWSrh+ACbdV8obLkp2G64k6cXUsJlosbRN5VZ2J5xMC6l2zJ1zs4lfv83reC/6C3YeelXjGn+3KFY9xbtKTTrCGowNPJqpli8BTtrWqEiu8BOtJ0h9sdP4ulTvBHwetgfX29cW5J1b9XN62QYOcigL8o/MbVpkcKzmozQO30Gtiho5qAH2grgYCKasrePOVXmOo2wTNxzNr2iQwhOQhcr43/gOFHrc82nf+ZEpcr/rwtQFlg444ENhX0bGNSa/G5eY54AyoUWLOKnq/L+Ud01RYhBdg4+Rsc=----ATTACHMENT:----OTgyODE3MzI3MzUwOTA1NiA1NDEzNjA2MzMxMjgyNzU1IDExNTE0NTAyNzg5OTQwMTM=