8000 minor #14789 Remove unused imports and properties in experimental aut… · symfony/symfony-docs@04e5ee6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 04e5ee6

Browse files
committed
minor #14789 Remove unused imports and properties in experimental authenticator example (jacekpl)
This PR was submitted for the 5.x branch but it was merged into the 5.2 branch instead. Discussion ---------- Remove unused imports and properties in experimental authenticator example Custom [authenticator example](https://symfony.com/doc/current/security/experimental_authenticators.html#creating-a-custom-authenticator) for new experimental authenticator docs contains unused imports and properties. I've simplified it by removing unneded code :-) Commits ------- 10f7522 Remove unused imports and properties
2 parents 155cc4e + 10f7522 commit 04e5ee6

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