vendor/symfony/security-bundle/Security/UserAuthenticator.php line 46

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Bundle\SecurityBundle\Security;
  11. use Psr\Container\ContainerInterface;
  12. use Symfony\Component\HttpFoundation\Request;
  13. use Symfony\Component\HttpFoundation\RequestStack;
  14. use Symfony\Component\HttpFoundation\Response;
  15. use Symfony\Component\Security\Core\User\UserInterface;
  16. use Symfony\Component\Security\Http\Authentication\UserAuthenticatorInterface;
  17. use Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface;
  18. /**
  19.  * A decorator that delegates all method calls to the authenticator
  20.  * manager of the current firewall.
  21.  *
  22.  * @author Wouter de Jong <wouter@wouterj.nl>
  23.  *
  24.  * @final
  25.  */
  26. class UserAuthenticator implements UserAuthenticatorInterface
  27. {
  28.     use FirewallAwareTrait;
  29.     public function __construct(FirewallMap $firewallMapContainerInterface $userAuthenticatorsRequestStack $requestStack)
  30.     {
  31.         $this->firewallMap $firewallMap;
  32.         $this->locator $userAuthenticators;
  33.         $this->requestStack $requestStack;
  34.     }
  35.     /**
  36.      * {@inheritdoc}
  37.      */
  38.     public function authenticateUser(UserInterface $userAuthenticatorInterface $authenticatorRequest $request, array $badges = []): ?Response
  39.     {
  40.         return $this->getForFirewall()->authenticateUser($user$authenticator$request$badges);
  41.     }
  42. }