MediaWiki  1.30.0
defines.php
Go to the documentation of this file.
1 <?php
2 
5 
9 define( 'DBO_DEBUG', IDatabase::DBO_DEBUG );
10 define( 'DBO_NOBUFFER', IDatabase::DBO_NOBUFFER );
11 define( 'DBO_IGNORE', IDatabase::DBO_IGNORE );
12 define( 'DBO_TRX', IDatabase::DBO_TRX );
13 define( 'DBO_DEFAULT', IDatabase::DBO_DEFAULT );
14 define( 'DBO_PERSISTENT', IDatabase::DBO_PERSISTENT );
15 define( 'DBO_SYSDBA', IDatabase::DBO_SYSDBA );
16 define( 'DBO_DDLMODE', IDatabase::DBO_DDLMODE );
17 define( 'DBO_SSL', IDatabase::DBO_SSL );
18 define( 'DBO_COMPRESS', IDatabase::DBO_COMPRESS );
25 define( 'DB_REPLICA', ILoadBalancer::DB_REPLICA );
26 define( 'DB_MASTER', ILoadBalancer::DB_MASTER );
DBO_PERSISTENT
const DBO_PERSISTENT
Definition: defines.php:14
DBO_DEBUG
const DBO_DEBUG
Definition: defines.php:9
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
DBO_SSL
const DBO_SSL
Definition: defines.php:17
DBO_IGNORE
const DBO_IGNORE
Definition: defines.php:11
DBO_TRX
const DBO_TRX
Definition: defines.php:12
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
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition: IDatabase.php:40
DBO_NOBUFFER
const DBO_NOBUFFER
Definition: defines.php:10
DB_REPLICA
const DB_REPLICA
Definition: defines.php:25
DB_MASTER
const DB_MASTER
Definition: defines.php:26
DBO_COMPRESS
const DBO_COMPRESS
Definition: defines.php:18
DBO_DDLMODE
const DBO_DDLMODE
Definition: defines.php:16
DBO_SYSDBA
const DBO_SYSDBA
Definition: defines.php:15
DBO_DEFAULT
const DBO_DEFAULT
Definition: defines.php:13
Wikimedia\Rdbms\ILoadBalancer
Database cluster connection, tracking, load balancing, and transaction manager interface.
Definition: ILoadBalancer.php:78