public function UserLogin::__construct in Services 9.0.x
Same name and namespace in other branches
- 8.4 src/Plugin/ServiceDefinition/UserLogin.php \Drupal\services\Plugin\ServiceDefinition\UserLogin::__construct()
Constructs a HTTP basic authentication provider object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\user\UserAuthInterface $user_auth: The user authentication service.
\Drupal\Core\Flood\FloodInterface $flood: The flood service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager service.
Session $session:
Overrides ContextAwarePluginBase::__construct
File
- src/
Plugin/ ServiceDefinition/ UserLogin.php, line 50
Class
- UserLogin
- Plugin annotation @ServiceDefinition( id = "user_login", methods = { "POST" }, title = @Translation("User login"), description = @Translation("Allows users to login."), category = @Translation("User"), path = "user/login" )
Namespace
Drupal\services\Plugin\ServiceDefinitionCode
public function __construct($configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, UserAuthInterface $user_auth, FloodInterface $flood, EntityTypeManagerInterface $entity_manager, Session $session) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configFactory = $config_factory;
$this->userAuth = $user_auth;
$this->flood = $flood;
$this->entityManager = $entity_manager;
$this->session = $session;
}