MediaWiki  1.29.2
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
use
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:10
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
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:82
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
class
you have access to all of the normal MediaWiki so you can get a DB use the etc For full docs on the Maintenance class
Definition: maintenance.txt:52
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