38 private $titleFormatter;
48 private $hookContainer;
53 private $specialPageFactory;
68 $this->titleFormatter = $titleFormatter;
69 $this->linkCache = $linkCache;
70 $this->specialPageFactory = $specialPageFactory;
71 $this->hookContainer = $hookContainer;
82 public function create( array $options = [
'renderForComment' =>
false ] ) {
84 $this->titleFormatter, $this->linkCache, $this->specialPageFactory,
95 $linkRenderer = $this->
create();
97 if ( in_array(
'forcearticlepath', $options,
true ) ) {
98 $linkRenderer->setForceArticlePath(
true );
101 if ( in_array(
'http', $options,
true ) ) {
103 } elseif ( in_array(
'https', $options,
true ) ) {
107 return $linkRenderer;
Cache for article titles (prefixed DB keys) and ids linked from one source.
Factory for handling the special page list and generating SpecialPage objects.