AbstractTokenProcessor.php
1 year ago
ConsoleCommandProcessor.php
1 year ago
DebugProcessor.php
1 year ago
RouteProcessor.php
1 year ago
SwitchUserTokenProcessor.php
2 years ago
TokenProcessor.php
2 years ago
WebProcessor.php
2 years ago
TokenProcessor.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace Matomo\Dependencies\Symfony\Bridge\Monolog\Processor; |
| 12 | |
| 13 | use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; |
| 14 | /** |
| 15 | * Adds the current security token to the log entry. |
| 16 | * |
| 17 | * @author Dany Maillard <danymaillard93b@gmail.com> |
| 18 | * @author Igor Timoshenko <igor.timoshenko@i.ua> |
| 19 | */ |
| 20 | class TokenProcessor extends AbstractTokenProcessor |
| 21 | { |
| 22 | /** |
| 23 | * {@inheritdoc} |
| 24 | */ |
| 25 | protected function getKey() : string |
| 26 | { |
| 27 | return 'token'; |
| 28 | } |
| 29 | /** |
| 30 | * {@inheritdoc} |
| 31 | */ |
| 32 | protected function getToken() : ?TokenInterface |
| 33 | { |
| 34 | return $this->tokenStorage->getToken(); |
| 35 | } |
| 36 | } |
| 37 |