public UserAuthenticationController::__construct(FloodInterface $flood, UserStorageInterface $user_storage, CsrfTokenGenerator $csrf_token, UserAuthInterface $user_auth, RouteProviderInterface $route_provider, Serializer $serializer, array $serializer_formats)
Constructs a new UserAuthenticationController object.
Parameters
\Drupal\Core\Flood\FloodInterface $flood: The flood controller.
\Drupal\user\UserStorageInterface $user_storage: The user storage.
\Drupal\Core\Access\CsrfTokenGenerator $csrf_token: The CSRF token generator.
\Drupal\user\UserAuthInterface $user_auth: The user authentication.
\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.
\Symfony\Component\Serializer\Serializer $serializer: The serializer.
array $serializer_formats: The available serialization formats.
File
- core/modules/user/src/Controller/UserAuthenticationController.php, line 107
Class
- UserAuthenticationController
- Provides controllers for login, login status and logout via HTTP requests.
Namespace
Drupal\user\Controller
Code
public function __construct(FloodInterface $flood, UserStorageInterface $user_storage, CsrfTokenGenerator $csrf_token, UserAuthInterface $user_auth, RouteProviderInterface $route_provider, Serializer $serializer, array $serializer_formats) { $this->flood = $flood; $this->userStorage = $user_storage; $this->csrfToken = $csrf_token; $this->userAuth = $user_auth; $this->serializer = $serializer; $this->serializerFormats = $serializer_formats; $this->routeProvider = $route_provider; }
Please login to continue.