Skip to content

Commit

Permalink
Merge branch 'lexik:master' into fix-deprecation-xml-mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
raziel057 authored Aug 21, 2023
2 parents 51763d9 + 55f2058 commit 9eb9f27
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Util/Csrf/CsrfCheckerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Lexik\Bundle\TranslationBundle\Util\Csrf;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Csrf\CsrfTokenManager;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Contracts\Service\Attribute\Required;

/**
* Class CsrfChecker.
Expand All @@ -15,17 +15,13 @@ trait CsrfCheckerTrait

private $tokenManager;

/**
* @required
*/
#[Required]
public function setRequestStack(RequestStack $requestStack): void
{
$this->requestStack = $requestStack;
}

/**
* @required
*/
#[Required]
public function setTokenManager(?CsrfTokenManager $tokenManager): void
{
$this->tokenManager = $tokenManager;
Expand Down

0 comments on commit 9eb9f27

Please sign in to comment.