Skip to content

Commit

Permalink
Merge pull request #438 from raziel057/fix-deprecation-sf63-1
Browse files Browse the repository at this point in the history
Fix SF63 deprecations - annotations to attributes
  • Loading branch information
bartmcleod authored Aug 8, 2023
2 parents 4fc1e76 + 00bf8cb commit 55f2058
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 55f2058

Please sign in to comment.