parent::__construct();
$this->output = new WebInstallerOutput( $this );
$this->request = $request;
-
- // Add parser hooks
- $parser = MediaWikiServices::getInstance()->getParser();
- $parser->setHook( 'doclink', [ $this, 'docLink' ] );
}
/**
}
/**
- * Helper for Installer::docLink()
+ * Helper for WebInstallerOutput
*
* @internal For use by WebInstallerOutput
* @param string $page
return $this->getUrl( $query );
}
- /**
- * Extension tag hook for a documentation link.
- *
- * @param string $linkText
- * @param string[] $attribs
- * @param Parser $parser Unused
- *
- * @return string
- */
- public function docLink( $linkText, $attribs, $parser ) {
- $url = $this->getDocUrl( $attribs['href'] );
-
- return Html::element( 'a', [ 'href' => $url ], $linkText );
- }
-
/**
* Helper for sidebar links.
*