MediaWiki  1.33.0
CaptchaTriggers.php
Go to the documentation of this file.
1 <?php
2 
7 abstract class CaptchaTriggers {
8  const EDIT = 'edit';
9  const CREATE = 'create';
10  const SENDEMAIL = 'sendemail';
11  const ADD_URL = 'addurl';
12  const CREATE_ACCOUNT = 'createaccount';
13  const BAD_LOGIN = 'badlogin';
14  const BAD_LOGIN_PER_USER = 'badloginperuser';
15 
16  const EXT_REG_ATTRIBUTE_NAME = 'CaptchaTriggers';
17 }
CaptchaTriggers\SENDEMAIL
const SENDEMAIL
Definition: CaptchaTriggers.php:10
CaptchaTriggers\EDIT
const EDIT
Definition: CaptchaTriggers.php:8
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
CaptchaTriggers\CREATE_ACCOUNT
const CREATE_ACCOUNT
Definition: CaptchaTriggers.php:12
CaptchaTriggers\BAD_LOGIN
const BAD_LOGIN
Definition: CaptchaTriggers.php:13
CaptchaTriggers\CREATE
const CREATE
Definition: CaptchaTriggers.php:9
CaptchaTriggers\EXT_REG_ATTRIBUTE_NAME
const EXT_REG_ATTRIBUTE_NAME
Definition: CaptchaTriggers.php:16
CaptchaTriggers
A class with constants of the CAPTCHA triggers built-in in ConfirmEdit.
Definition: CaptchaTriggers.php:7
CaptchaTriggers\BAD_LOGIN_PER_USER
const BAD_LOGIN_PER_USER
Definition: CaptchaTriggers.php:14
CaptchaTriggers\ADD_URL
const ADD_URL
Definition: CaptchaTriggers.php:11