28use Psr\Log\LoggerInterface;
99 LoggerInterface $logger,
106 wfDebug( __CLASS__ .
": using default preprocessor" );
108 $this->svcOptions = $svcOptions;
109 $this->magicWordFactory = $magicWordFactory;
110 $this->contLang = $contLang;
111 $this->urlProtocols = $urlProtocols;
112 $this->specialPageFactory = $spFactory;
113 $this->linkRendererFactory = $linkRendererFactory;
114 $this->nsInfo = $nsInfo;
115 $this->logger = $logger;
116 $this->badFileLookup = $badFileLookup;
117 $this->languageConverterFactory = $languageConverterFactory;
118 $this->hookContainer = $hookContainer;
132 $this->magicWordFactory,
136 $this->specialPageFactory,
137 $this->linkRendererFactory,
140 $this->badFileLookup,
141 $this->languageConverterFactory,
145 self::$inParserFactory--;
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
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.
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
SpecialPageFactory $specialPageFactory
HookContainer $hookContainer
__construct(ServiceOptions $svcOptions, MagicWordFactory $magicWordFactory, Language $contLang, string $urlProtocols, SpecialPageFactory $spFactory, LinkRendererFactory $linkRendererFactory, NamespaceInfo $nsInfo, LoggerInterface $logger, BadFileLookup $badFileLookup, LanguageConverterFactory $languageConverterFactory, HookContainer $hookContainer)
LanguageConverterFactory $languageConverterFactory
LinkRendererFactory $linkRendererFactory
MagicWordFactory $magicWordFactory
ServiceOptions $svcOptions
BadFileLookup $badFileLookup
static int $inParserFactory
Track calls to Parser constructor to aid in deprecation of direct Parser invocation.
create()
Creates a new parser.
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...