Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@..
Decoded Output download
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bridge\Monolog\Processor;
use Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
/**
* Adds the original security token to the log entry.
*
* @author Igor Timoshenko <[email protected]>
*/
final class SwitchUserTokenProcessor extends AbstractTokenProcessor
{
protected function getKey(): string
{
return 'impersonator_token';
}
protected function getToken(): ?TokenInterface
{
$token = $this->tokenStorage->getToken();
if ($token instanceof SwitchUserToken) {
return $token->getOriginalToken();
}
return null;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bridge\Monolog\Processor;
use Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
/**
* Adds the original security token to the log entry.
*
* @author Igor Timoshenko <[email protected]>
*/
final class SwitchUserTokenProcessor extends AbstractTokenProcessor
{
protected function getKey(): string
{
return 'impersonator_token';
}
protected function getToken(): ?TokenInterface
{
$token = $this->tokenStorage->getToken();
if ($token instanceof SwitchUserToken) {
return $token->getOriginalToken();
}
return null;
}
}
Function Calls
None |
Stats
MD5 | 1339634eeea5a9014b4f4196aa5f213b |
Eval Count | 0 |
Decode Time | 94 ms |