MediaWiki REL1_32
ParserFactory.php
Go to the documentation of this file.
1<?php
23
29 private $conf;
30
33
35 private $contLang;
36
39
42
51 public function __construct(
52 array $conf, MagicWordFactory $magicWordFactory, Language $contLang, $urlProtocols,
53 SpecialPageFactory $spFactory
54 ) {
55 $this->conf = $conf;
56 $this->magicWordFactory = $magicWordFactory;
57 $this->contLang = $contLang;
58 $this->urlProtocols = $urlProtocols;
59 $this->specialPageFactory = $spFactory;
60 }
61
66 public function create() : Parser {
67 return new Parser( $this->conf, $this->magicWordFactory, $this->contLang, $this,
68 $this->urlProtocols, $this->specialPageFactory );
69 }
70}
Internationalisation code.
Definition Language.php:35
A factory that stores information about MagicWords, and creates them on demand with caching.
Factory for handling the special page list and generating SpecialPage objects.
Language $contLang
SpecialPageFactory $specialPageFactory
MagicWordFactory $magicWordFactory
__construct(array $conf, MagicWordFactory $magicWordFactory, Language $contLang, $urlProtocols, SpecialPageFactory $spFactory)
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...
Definition Parser.php:68
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))