MediaWiki  master
AbstractAuthenticationProvider.php
Go to the documentation of this file.
1 <?php
22 namespace MediaWiki\Auth;
23 
24 use Config;
25 use 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 }
MediaWiki\Auth\AbstractAuthenticationProvider\getUniqueId
getUniqueId()
Return a unique identifier for this instance.This must be the same across requests....
Definition: AbstractAuthenticationProvider.php:56
MediaWiki\Auth\AbstractAuthenticationProvider\$manager
AuthManager $manager
Definition: AbstractAuthenticationProvider.php:36
Config
Interface for configuration instances.
Definition: Config.php:28
MediaWiki\Auth\AbstractAuthenticationProvider\setManager
setManager(AuthManager $manager)
Set AuthManager.
Definition: AbstractAuthenticationProvider.php:44
MediaWiki\Auth\AbstractAuthenticationProvider\setConfig
setConfig(Config $config)
Set configuration.
Definition: AbstractAuthenticationProvider.php:48
MediaWiki\Auth\AbstractAuthenticationProvider\setLogger
setLogger(LoggerInterface $logger)
Definition: AbstractAuthenticationProvider.php:40
MediaWiki\Auth\AuthManager
This serves as the entry point to the authentication system.
Definition: AuthManager.php:85
MediaWiki\Auth\AbstractAuthenticationProvider\$logger
LoggerInterface $logger
Definition: AbstractAuthenticationProvider.php:34
MediaWiki\Auth\AbstractAuthenticationProvider
A base class that implements some of the boilerplate for an AuthenticationProvider.
Definition: AbstractAuthenticationProvider.php:32
MediaWiki\Auth
Definition: AbstractAuthenticationProvider.php:22
MediaWiki\Auth\AbstractAuthenticationProvider\$config
Config $config
Definition: AbstractAuthenticationProvider.php:38
MediaWiki\Auth\AuthenticationProvider
An AuthenticationProvider is used by AuthManager when authenticating users.
Definition: AuthenticationProvider.php:39