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\Component\Form\Extension\Csrf;
use Symfony\Component\Form\AbstractExtension;
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
* This extension protects forms by using a CSRF token.
*
* @author Bernhard Schussek <[email protected]>
*/
class CsrfExtension extends AbstractExtension
{
public function __construct(
private CsrfTokenManagerInterface $tokenManager,
private ?TranslatorInterface $translator = null,
private ?string $translationDomain = null,
) {
}
protected function loadTypeExtensions(): array
{
return [
new Type\FormTypeCsrfExtension($this->tokenManager, true, '_token', $this->translator, $this->translationDomain),
];
}
}
?>
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\Component\Form\Extension\Csrf;
use Symfony\Component\Form\AbstractExtension;
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
* This extension protects forms by using a CSRF token.
*
* @author Bernhard Schussek <[email protected]>
*/
class CsrfExtension extends AbstractExtension
{
public function __construct(
private CsrfTokenManagerInterface $tokenManager,
private ?TranslatorInterface $translator = null,
private ?string $translationDomain = null,
) {
}
protected function loadTypeExtensions(): array
{
return [
new Type\FormTypeCsrfExtension($this->tokenManager, true, '_token', $this->translator, $this->translationDomain),
];
}
}
Function Calls
None |
Stats
MD5 | abbf39de99fbf0815df46ed80c601b0b |
Eval Count | 0 |
Decode Time | 95 ms |