Skip to content

Commit 1e5034c

Browse files
authored
Merge pull request #355 from norkunas/fix-deprecation-notice
Fix autowiring deprecation notice
2 parents 897f77f + 344b1aa commit 1e5034c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/extensions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ use AppBundle\Entity\Offer;
6969
use AppBundle\Entity\User;
7070
use Doctrine\ORM\QueryBuilder;
7171
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
72-
use Symfony\Component\Security\Core\Authorization\AuthorizationChecker;
72+
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
7373

7474
final class CurrentUserExtension implements QueryCollectionExtensionInterface, QueryItemExtensionInterface
7575
{
7676
private $tokenStorage;
7777
private $authorizationChecker;
7878

79-
public function __construct(TokenStorageInterface $tokenStorage, AuthorizationChecker $checker)
79+
public function __construct(TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $checker)
8080
{
8181
$this->tokenStorage = $tokenStorage;
8282
$this->authorizationChecker = $checker;

0 commit comments

Comments
 (0)