MediaWiki REL1_34
AbstractAuthenticationProvider.php
Go to the documentation of this file.
1<?php
23
24use Config;
25use Psr\Log\LoggerInterface;
26
34 protected $logger;
36 protected $manager;
38 protected $config;
39
40 public function setLogger( LoggerInterface $logger ) {
41 $this->logger = $logger;
42 }
43
44 public function setManager( AuthManager $manager ) {
45 $this->manager = $manager;
46 }
47
48 public function setConfig( Config $config ) {
49 $this->config = $config;
50 }
51
56 public function getUniqueId() {
57 return static::class;
58 }
59}
A base class that implements some of the boilerplate for an AuthenticationProvider.
getUniqueId()
Return a unique identifier for this instance.This must be the same across requests....
This serves as the entry point to the authentication system.
Interface for configuration instances.
Definition Config.php:28
An AuthenticationProvider is used by AuthManager when authenticating users.