MediaWiki  1.27.2
RedisConnectionPool.php
Go to the documentation of this file.
1 <?php
28 
42 class RedisConnectionPool implements LoggerAwareInterface {
50  protected $connectTimeout;
52  protected $readTimeout;
54  protected $password;
56  protected $persistent;
58  protected $serializer;
62  protected $idlePoolSize = 0;
63 
65  protected $connections = [];
67  protected $downServers = [];
68 
70  protected static $instances = [];
71 
73  const SERVER_DOWN_TTL = 30;
74 
78  protected $logger;
79 
84  protected function __construct( array $options ) {
85  if ( !class_exists( 'Redis' ) ) {
86  throw new Exception( __CLASS__ . ' requires a Redis client library. ' .
87  'See https://www.mediawiki.org/wiki/Redis#Setup' );
88  }
89  if ( isset( $options['logger'] ) ) {
90  $this->setLogger( $options['logger'] );
91  } else {
92  $this->setLogger( LoggerFactory::getInstance( 'redis' ) );
93  }
94  $this->connectTimeout = $options['connectTimeout'];
95  $this->readTimeout = $options['readTimeout'];
96  $this->persistent = $options['persistent'];
97  $this->password = $options['password'];
98  if ( !isset( $options['serializer'] ) || $options['serializer'] === 'php' ) {
99  $this->serializer = Redis::SERIALIZER_PHP;
100  } elseif ( $options['serializer'] === 'igbinary' ) {
101  $this->serializer = Redis::SERIALIZER_IGBINARY;
102  } elseif ( $options['serializer'] === 'none' ) {
103  $this->serializer = Redis::SERIALIZER_NONE;
104  } else {
105  throw new InvalidArgumentException( "Invalid serializer specified." );
106  }
107  }
108 
113  public function setLogger( LoggerInterface $logger ) {
114  $this->logger = $logger;
115  }
116 
121  protected static function applyDefaultConfig( array $options ) {
122  if ( !isset( $options['connectTimeout'] ) ) {
123  $options['connectTimeout'] = 1;
124  }
125  if ( !isset( $options['readTimeout'] ) ) {
126  $options['readTimeout'] = 1;
127  }
128  if ( !isset( $options['persistent'] ) ) {
129  $options['persistent'] = false;
130  }
131  if ( !isset( $options['password'] ) ) {
132  $options['password'] = null;
133  }
134 
135  return $options;
136  }
137 
153  public static function singleton( array $options ) {
154  $options = self::applyDefaultConfig( $options );
155  // Map the options to a unique hash...
156  ksort( $options ); // normalize to avoid pool fragmentation
157  $id = sha1( serialize( $options ) );
158  // Initialize the object at the hash as needed...
159  if ( !isset( self::$instances[$id] ) ) {
160  self::$instances[$id] = new self( $options );
161  LoggerFactory::getInstance( 'redis' )->debug(
162  "Creating a new " . __CLASS__ . " instance with id $id."
163  );
164  }
165 
166  return self::$instances[$id];
167  }
168 
173  public static function destroySingletons() {
174  self::$instances = [];
175  }
176 
185  public function getConnection( $server ) {
186  // Check the listing "dead" servers which have had a connection errors.
187  // Servers are marked dead for a limited period of time, to
188  // avoid excessive overhead from repeated connection timeouts.
189  if ( isset( $this->downServers[$server] ) ) {
190  $now = time();
191  if ( $now > $this->downServers[$server] ) {
192  // Dead time expired
193  unset( $this->downServers[$server] );
194  } else {
195  // Server is dead
196  $this->logger->debug(
197  'Server "{redis_server}" is marked down for another ' .
198  ( $this->downServers[$server] - $now ) . 'seconds',
199  [ 'redis_server' => $server ]
200  );
201 
202  return false;
203  }
204  }
205 
206  // Check if a connection is already free for use
207  if ( isset( $this->connections[$server] ) ) {
208  foreach ( $this->connections[$server] as &$connection ) {
209  if ( $connection['free'] ) {
210  $connection['free'] = false;
212 
213  return new RedisConnRef(
214  $this, $server, $connection['conn'], $this->logger
215  );
216  }
217  }
218  }
219 
220  if ( substr( $server, 0, 1 ) === '/' ) {
221  // UNIX domain socket
222  // These are required by the redis extension to start with a slash, but
223  // we still need to set the port to a special value to make it work.
224  $host = $server;
225  $port = 0;
226  } else {
227  // TCP connection
228  $hostPort = IP::splitHostAndPort( $server );
229  if ( !$server || !$hostPort ) {
230  throw new InvalidArgumentException(
231  __CLASS__ . ": invalid configured server \"$server\""
232  );
233  }
234  list( $host, $port ) = $hostPort;
235  if ( $port === false ) {
236  $port = 6379;
237  }
238  }
239 
240  $conn = new Redis();
241  try {
242  if ( $this->persistent ) {
243  $result = $conn->pconnect( $host, $port, $this->connectTimeout );
244  } else {
245  $result = $conn->connect( $host, $port, $this->connectTimeout );
246  }
247  if ( !$result ) {
248  $this->logger->error(
249  'Could not connect to server "{redis_server}"',
250  [ 'redis_server' => $server ]
251  );
252  // Mark server down for some time to avoid further timeouts
253  $this->downServers[$server] = time() + self::SERVER_DOWN_TTL;
254 
255  return false;
256  }
257  if ( $this->password !== null ) {
258  if ( !$conn->auth( $this->password ) ) {
259  $this->logger->error(
260  'Authentication error connecting to "{redis_server}"',
261  [ 'redis_server' => $server ]
262  );
263  }
264  }
265  } catch ( RedisException $e ) {
266  $this->downServers[$server] = time() + self::SERVER_DOWN_TTL;
267  $this->logger->error(
268  'Redis exception connecting to "{redis_server}"',
269  [
270  'redis_server' => $server,
271  'exception' => $e,
272  ]
273  );
274 
275  return false;
276  }
277 
278  if ( $conn ) {
279  $conn->setOption( Redis::OPT_READ_TIMEOUT, $this->readTimeout );
280  $conn->setOption( Redis::OPT_SERIALIZER, $this->serializer );
281  $this->connections[$server][] = [ 'conn' => $conn, 'free' => false ];
282 
283  return new RedisConnRef( $this, $server, $conn, $this->logger );
284  } else {
285  return false;
286  }
287  }
288 
296  public function freeConnection( $server, Redis $conn ) {
297  $found = false;
298 
299  foreach ( $this->connections[$server] as &$connection ) {
300  if ( $connection['conn'] === $conn && !$connection['free'] ) {
301  $connection['free'] = true;
303  break;
304  }
305  }
306 
307  $this->closeExcessIdleConections();
308 
309  return $found;
310  }
311 
315  protected function closeExcessIdleConections() {
316  if ( $this->idlePoolSize <= count( $this->connections ) ) {
317  return; // nothing to do (no more connections than servers)
318  }
319 
320  foreach ( $this->connections as &$serverConnections ) {
321  foreach ( $serverConnections as $key => &$connection ) {
322  if ( $connection['free'] ) {
323  unset( $serverConnections[$key] );
324  if ( --$this->idlePoolSize <= count( $this->connections ) ) {
325  return; // done (no more connections than servers)
326  }
327  }
328  }
329  }
330  }
331 
343  public function handleException( $server, RedisConnRef $cref, RedisException $e ) {
344  $this->handleError( $cref, $e );
345  }
346 
356  public function handleError( RedisConnRef $cref, RedisException $e ) {
357  $server = $cref->getServer();
358  $this->logger->error(
359  'Redis exception on server "{redis_server}"',
360  [
361  'redis_server' => $server,
362  'exception' => $e,
363  ]
364  );
365  foreach ( $this->connections[$server] as $key => $connection ) {
366  if ( $cref->isConnIdentical( $connection['conn'] ) ) {
367  $this->idlePoolSize -= $connection['free'] ? 1 : 0;
368  unset( $this->connections[$server][$key] );
369  break;
370  }
371  }
372  }
373 
390  public function reauthenticateConnection( $server, Redis $conn ) {
391  if ( $this->password !== null ) {
392  if ( !$conn->auth( $this->password ) ) {
393  $this->logger->error(
394  'Authentication error connecting to "{redis_server}"',
395  [ 'redis_server' => $server ]
396  );
397 
398  return false;
399  }
400  }
401 
402  return true;
403  }
404 
411  public function resetTimeout( Redis $conn, $timeout = null ) {
412  $conn->setOption( Redis::OPT_READ_TIMEOUT, $timeout ?: $this->readTimeout );
413  }
414 
418  function __destruct() {
419  foreach ( $this->connections as $server => &$serverConnections ) {
420  foreach ( $serverConnections as $key => &$connection ) {
421  $connection['conn']->close();
422  }
423  }
424  }
425 }
426 
437  protected $pool;
439  protected $conn;
440 
441  protected $server; // string
442  protected $lastError; // string
443 
447  protected $logger;
448 
455  public function __construct(
456  RedisConnectionPool $pool, $server, Redis $conn, LoggerInterface $logger
457  ) {
458  $this->pool = $pool;
459  $this->server = $server;
460  $this->conn = $conn;
461  $this->logger = $logger;
462  }
463 
468  public function getServer() {
469  return $this->server;
470  }
471 
472  public function getLastError() {
473  return $this->lastError;
474  }
475 
476  public function clearLastError() {
477  $this->lastError = null;
478  }
479 
480  public function __call( $name, $arguments ) {
481  $conn = $this->conn; // convenience
482 
483  // Work around https://github.com/nicolasff/phpredis/issues/70
484  $lname = strtolower( $name );
485  if ( ( $lname === 'blpop' || $lname == 'brpop' )
486  && is_array( $arguments[0] ) && isset( $arguments[1] )
487  ) {
488  $this->pool->resetTimeout( $conn, $arguments[1] + 1 );
489  } elseif ( $lname === 'brpoplpush' && isset( $arguments[2] ) ) {
490  $this->pool->resetTimeout( $conn, $arguments[2] + 1 );
491  }
492 
493  $conn->clearLastError();
494  try {
495  $res = call_user_func_array( [ $conn, $name ], $arguments );
496  if ( preg_match( '/^ERR operation not permitted\b/', $conn->getLastError() ) ) {
497  $this->pool->reauthenticateConnection( $this->server, $conn );
498  $conn->clearLastError();
499  $res = call_user_func_array( [ $conn, $name ], $arguments );
500  $this->logger->info(
501  "Used automatic re-authentication for method '$name'.",
502  [ 'redis_server' => $this->server ]
503  );
504  }
505  } catch ( RedisException $e ) {
506  $this->pool->resetTimeout( $conn ); // restore
507  throw $e;
508  }
509 
510  $this->lastError = $conn->getLastError() ?: $this->lastError;
511 
512  $this->pool->resetTimeout( $conn ); // restore
513 
514  return $res;
515  }
516 
524  public function luaEval( $script, array $params, $numKeys ) {
525  $sha1 = sha1( $script ); // 40 char hex
526  $conn = $this->conn; // convenience
527  $server = $this->server; // convenience
528 
529  // Try to run the server-side cached copy of the script
530  $conn->clearLastError();
531  $res = $conn->evalSha( $sha1, $params, $numKeys );
532  // If we got a permission error reply that means that (a) we are not in
533  // multi()/pipeline() and (b) some connection problem likely occurred. If
534  // the password the client gave was just wrong, an exception should have
535  // been thrown back in getConnection() previously.
536  if ( preg_match( '/^ERR operation not permitted\b/', $conn->getLastError() ) ) {
537  $this->pool->reauthenticateConnection( $server, $conn );
538  $conn->clearLastError();
539  $res = $conn->eval( $script, $params, $numKeys );
540  $this->logger->info(
541  "Used automatic re-authentication for Lua script '$sha1'.",
542  [ 'redis_server' => $server ]
543  );
544  }
545  // If the script is not in cache, use eval() to retry and cache it
546  if ( preg_match( '/^NOSCRIPT/', $conn->getLastError() ) ) {
547  $conn->clearLastError();
548  $res = $conn->eval( $script, $params, $numKeys );
549  $this->logger->info(
550  "Used eval() for Lua script '$sha1'.",
551  [ 'redis_server' => $server ]
552  );
553  }
554 
555  if ( $conn->getLastError() ) { // script bug?
556  $this->logger->error(
557  'Lua script error on server "{redis_server}": {lua_error}',
558  [
559  'redis_server' => $server,
560  'lua_error' => $conn->getLastError()
561  ]
562  );
563  }
564 
565  $this->lastError = $conn->getLastError() ?: $this->lastError;
566 
567  return $res;
568  }
569 
574  public function isConnIdentical( Redis $conn ) {
575  return $this->conn === $conn;
576  }
577 
578  function __destruct() {
579  $this->pool->freeConnection( $this->server, $this->conn );
580  }
581 }
luaEval($script, array $params, $numKeys)
getConnection($server)
Get a connection to a redis server.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
Definition: deferred.txt:11
the array() calling protocol came about after MediaWiki 1.4rc1.
__construct(RedisConnectionPool $pool, $server, Redis $conn, LoggerInterface $logger)
magic word the default is to use $key to get the and $key value or $key value text $key value html to format the value $key
Definition: hooks.txt:2321
__call($name, $arguments)
handleException($server, RedisConnRef $cref, RedisException $e)
The redis extension throws an exception in response to various read, write and protocol errors...
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
bool $persistent
Whether connections persist.
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException'returning false will NOT prevent logging $e
Definition: hooks.txt:1932
processing should stop and the error should be shown to the user * false
Definition: hooks.txt:189
string $password
Plaintext auth password.
array $downServers
(server name => UNIX timestamp)
static destroySingletons()
Destroy all singleton() instances.
string $connectTimeout
Connection timeout in seconds.
static applyDefaultConfig(array $options)
handleError(RedisConnRef $cref, RedisException $e)
The redis extension throws an exception in response to various read, write and protocol errors...
array $connections
(server name => ((connection info array),...)
The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message.Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item.Return false to stop further processing of the tag $reader:XMLReader object $logInfo:Array of information 'ImportHandlePageXMLTag':When parsing a XML tag in a page.Return false to stop further processing of the tag $reader:XMLReader object &$pageInfo:Array of information 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision.Return false to stop further processing of the tag $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information 'ImportHandleToplevelXMLTag':When parsing a top level XML tag.Return false to stop further processing of the tag $reader:XMLReader object 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload.Return false to stop further processing of the tag $reader:XMLReader object $revisionInfo:Array of information 'ImportLogInterwikiLink':Hook to change the interwiki link used in log entries and edit summaries for transwiki imports.&$fullInterwikiPrefix:Interwiki prefix, may contain colons.&$pageTitle:String that contains page title. 'ImportSources':Called when reading from the $wgImportSources configuration variable.Can be used to lazy-load the import sources list.&$importSources:The value of $wgImportSources.Modify as necessary.See the comment in DefaultSettings.php for the detail of how to structure this array. 'InfoAction':When building information to display on the action=info page.$context:IContextSource object &$pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect.&$title:Title object for the current page &$request:WebRequest &$ignoreRedirect:boolean to skip redirect check &$target:Title/string of redirect target &$article:Article object 'InternalParseBeforeLinks':during Parser's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings.&$parser:Parser object &$text:string containing partially parsed text &$stripState:Parser's internal StripState object 'InternalParseBeforeSanitize':during Parser's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings.Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments.&$parser:Parser object &$text:string containing partially parsed text &$stripState:Parser's internal StripState object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not.Return true without providing an interwiki to continue interwiki search.$prefix:interwiki prefix we are looking for.&$iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InvalidateEmailComplete':Called after a user's email has been invalidated successfully.$user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification.Callee may modify $url and $query, URL will be constructed as $url.$query &$url:URL to index.php &$query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) &$article:article(object) being checked 'IsTrustedProxy':Override the result of IP::isTrustedProxy() &$ip:IP being check &$result:Change this value to override the result of IP::isTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from &$allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of Sanitizer::validateEmail(), for instance to return false if the domain name doesn't match your organization.$addr:The e-mail address entered by the user &$result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user &$result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we're looking for a messages file for &$file:The messages file path, you can override this to change the location. 'LanguageGetMagic':DEPRECATED!Use $magicWords in a file listed in $wgExtensionMessagesFiles instead.Use this to define synonyms of magic words depending of the language &$magicExtensions:associative array of magic words synonyms $lang:language code(string) 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces.Do not use this hook to add namespaces.Use CanonicalNamespaces for that.&$namespaces:Array of namespaces indexed by their numbers 'LanguageGetSpecialPageAliases':DEPRECATED!Use $specialPageAliases in a file listed in $wgExtensionMessagesFiles instead.Use to define aliases of special pages names depending of the language &$specialPageAliases:associative array of magic words synonyms $lang:language code(string) 'LanguageGetTranslatedLanguageNames':Provide translated language names.&$names:array of language code=> language name $code:language of the preferred translations 'LanguageLinks':Manipulate a page's language links.This is called in various places to allow extensions to define the effective language links for a page.$title:The page's Title.&$links:Associative array mapping language codes to prefixed links of the form"language:title".&$linkFlags:Associative array mapping prefixed links to arrays of flags.Currently unused, but planned to provide support for marking individual language links in the UI, e.g.for featured articles. 'LanguageSelector':Hook to change the language selector available on a page.$out:The output page.$cssClassName:CSS class name of the language selector. 'LinkBegin':Used when generating internal and interwiki links in Linker::link(), before processing starts.Return false to skip default processing and return $ret.See documentation for Linker::link() for details on the expected meanings of parameters.$skin:the Skin object $target:the Title that the link is pointing to &$html:the contents that the< a > tag should have(raw HTML) $result
Definition: hooks.txt:1796
static singleton(array $options)
int $serializer
Serializer to use (Redis::SERIALIZER_*)
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context $options
Definition: hooks.txt:1004
$res
Definition: database.txt:21
const SERVER_DOWN_TTL
integer; seconds to cache servers as "down".
__destruct()
Make sure connections are closed for sanity.
$params
string $readTimeout
Read timeout in seconds.
freeConnection($server, Redis $conn)
Mark a connection to a server as free to return to the pool.
resetTimeout(Redis $conn, $timeout=null)
Adjust or reset the connection handle read timeout value.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9
__construct(array $options)
static splitHostAndPort($both)
Given a host/port string, like one might find in the host part of a URL per RFC 2732, split the hostname part and the port part and return an array with an element for each.
Definition: IP.php:254
RedisConnectionPool $pool
Helper class to manage Redis connections.
closeExcessIdleConections()
Close any extra idle connections if there are more than the limit.
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
reauthenticateConnection($server, Redis $conn)
Re-send an AUTH request to the redis server (useful after disconnects).
LoggerInterface $logger
Helper class to handle automatically marking connectons as reusable (via RAII pattern) ...
isConnIdentical(Redis $conn)
MediaWiki Logger LoggerFactory implements a PSR[0] compatible message logging system Named Psr Log LoggerInterface instances can be obtained from the MediaWiki Logger LoggerFactory::getInstance() static method.MediaWiki\Logger\LoggerFactory expects a class implementing the MediaWiki\Logger\Spi interface to act as a factory for new Psr\Log\LoggerInterface instances.The"Spi"in MediaWiki\Logger\Spi stands for"service provider interface".An SPI is an API intended to be implemented or extended by a third party.This software design pattern is intended to enable framework extension and replaceable components.It is specifically used in the MediaWiki\Logger\LoggerFactory service to allow alternate PSR-3 logging implementations to be easily integrated with MediaWiki.The service provider interface allows the backend logging library to be implemented in multiple ways.The $wgMWLoggerDefaultSpi global provides the classname of the default MediaWiki\Logger\Spi implementation to be loaded at runtime.This can either be the name of a class implementing the MediaWiki\Logger\Spi with a zero argument const ructor or a callable that will return an MediaWiki\Logger\Spi instance.Alternately the MediaWiki\Logger\LoggerFactory MediaWiki Logger LoggerFactory
Definition: logger.txt:5
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same so they can t rely on Unix and must forbid reads to even standard directories like tmp lest users read each others files We cannot assume that the user has the ability to install or run any programs not written as web accessible PHP scripts Since anything that works on cheap shared hosting will work if you have shell or root access MediaWiki s design is based around catering to the lowest common denominator Although we support higher end setups as the way many things work by default is tailored toward shared hosting These defaults are unconventional from the point of view of and they certainly aren t ideal for someone who s installing MediaWiki as MediaWiki does not conform to normal Unix filesystem layout Hopefully we ll offer direct support for standard layouts in the but for now *any change to the location of files is unsupported *Moving things and leaving symlinks will *probably *not break but it is *strongly *advised not to try any more intrusive changes to get MediaWiki to conform more closely to your filesystem hierarchy Any such attempt will almost certainly result in unnecessary bugs The standard recommended location to install relative to the web is it should be possible to enable the appropriate rewrite rules by if you can reconfigure the web server
setLogger(LoggerInterface $logger)
serialize()
Definition: ApiMessage.php:94
static array $instances
(pool ID => RedisConnectionPool)
int $idlePoolSize
Current idle pool size.
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:310