MediaWiki  master
AbstractAuthenticationProvider.php
Go to the documentation of this file.
1 <?php
22 namespace MediaWiki\Auth;
23 
24 use Config;
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 }
An AuthenticationProvider is used by AuthManager when authenticating users.
getUniqueId()
Return a unique identifier for this instance.This must be the same across requests. If multiple instances return the same ID, exceptions will be thrown from AuthManager.string
Interface for configuration instances.
Definition: Config.php:28
This serves as the entry point to the authentication system.
Definition: AuthManager.php:85
A base class that implements some of the boilerplate for an AuthenticationProvider.