8000 Merge branch '5.2' into 5.x · symfony/symfony-docs@37948c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 37948c0

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Remove unused imports and properties
2 parents 7306d03 + 04e5ee6 commit 37948c0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

security/experimental_authenticators.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,6 @@ method that fits most use-cases::
287287
// src/Security/ApiKeyAuthenticator.php
288288
namespace App\Security;
289289

290-
use App\Entity\User;
291-
use Doctrine\ORM\EntityManagerInterface;
292290
use Symfony\Component\HttpFoundation\JsonResponse;
293291
use Symfony\Component\HttpFoundation\Request;
294292
use Symfony\Component\HttpFoundation\Response;
@@ -302,13 +300,6 @@ method that fits most use-cases::
302300

303301
class ApiKeyAuthenticator extends AbstractAuthenticator
304302
{
305-
private $entityManager;
306-
307-
public function __construct(EntityManagerInterface $entityManager)
308-
{
309-
$this->entityManager = $entityManager;
310-
}
311-
312303
/**
313304
* Called on every request to decide if this authenticator should be
314305
* used for the request. Returning `false` will cause this authenticator

0 commit comments

Comments
 (0)
0