MediaWiki  master
AbstractAuthenticationProvider.php
Go to the documentation of this file.
1 <?php
22 namespace MediaWiki\Auth;
23 
24 use Config;
27 use Psr\Log\LoggerInterface;
28 
37  protected $logger;
39  protected $manager;
41  protected $config;
43  private $hookContainer;
45  private $hookRunner;
46 
47  public function setLogger( LoggerInterface $logger ) {
48  $this->logger = $logger;
49  }
50 
51  public function setManager( AuthManager $manager ) {
52  $this->manager = $manager;
53  }
54 
59  public function setConfig( Config $config ) {
60  $this->config = $config;
61  }
62 
64  $this->hookContainer = $hookContainer;
65  $this->hookRunner = new HookRunner( $hookContainer );
66  }
67 
72  public function getUniqueId() {
73  return static::class;
74  }
75 
80  protected function getHookContainer() : HookContainer {
81  return $this->hookContainer;
82  }
83 
90  protected function getHookRunner() : HookRunner {
91  return $this->hookRunner;
92  }
93 }
MediaWiki\Auth\AbstractAuthenticationProvider\getUniqueId
getUniqueId()
Return a unique identifier for this instance.This must be the same across requests....
Definition: AbstractAuthenticationProvider.php:72
MediaWiki\Auth\AbstractAuthenticationProvider\$hookContainer
HookContainer $hookContainer
Definition: AbstractAuthenticationProvider.php:43
MediaWiki\Auth\AbstractAuthenticationProvider\$manager
AuthManager $manager
Definition: AbstractAuthenticationProvider.php:39
MediaWiki\Auth\AbstractAuthenticationProvider\$hookRunner
HookRunner $hookRunner
Definition: AbstractAuthenticationProvider.php:45
Config
Interface for configuration instances.
Definition: Config.php:30
MediaWiki\Auth\AbstractAuthenticationProvider\setHookContainer
setHookContainer(HookContainer $hookContainer)
Set the HookContainer.
Definition: AbstractAuthenticationProvider.php:63
MediaWiki\Auth\AbstractAuthenticationProvider\setManager
setManager(AuthManager $manager)
Set AuthManager.
Definition: AbstractAuthenticationProvider.php:51
MediaWiki\Auth\AbstractAuthenticationProvider\setConfig
setConfig(Config $config)
Stable to override.
Definition: AbstractAuthenticationProvider.php:59
MediaWiki\Auth\AbstractAuthenticationProvider\setLogger
setLogger(LoggerInterface $logger)
Definition: AbstractAuthenticationProvider.php:47
MediaWiki\Auth\AuthManager
This serves as the entry point to the authentication system.
Definition: AuthManager.php:88
MediaWiki\Auth\AbstractAuthenticationProvider\$logger
LoggerInterface $logger
Definition: AbstractAuthenticationProvider.php:37
MediaWiki\Auth\AbstractAuthenticationProvider
A base class that implements some of the boilerplate for an AuthenticationProvider Stable to extend.
Definition: AbstractAuthenticationProvider.php:35
MediaWiki\HookContainer\HookContainer
HookContainer class.
Definition: HookContainer.php:44
MediaWiki\HookContainer\HookRunner
This class provides an implementation of the core hook interfaces, forwarding hook calls to HookConta...
Definition: HookRunner.php:570
MediaWiki\Auth
Definition: AbstractAuthenticationProvider.php:22
MediaWiki\Auth\AbstractAuthenticationProvider\getHookContainer
getHookContainer()
Definition: AbstractAuthenticationProvider.php:80
MediaWiki\Auth\AbstractAuthenticationProvider\$config
Config $config
Definition: AbstractAuthenticationProvider.php:41
MediaWiki\Auth\AbstractAuthenticationProvider\getHookRunner
getHookRunner()
Definition: AbstractAuthenticationProvider.php:90
MediaWiki\Auth\AuthenticationProvider
An AuthenticationProvider is used by AuthManager when authenticating users.
Definition: AuthenticationProvider.php:40