1 | <?php |
||
13 | class WikiTextHelper |
||
14 | { |
||
15 | /** |
||
16 | * @var SiteConfiguration |
||
17 | */ |
||
18 | private $configuration; |
||
19 | /** |
||
20 | * @var HttpHelper |
||
21 | */ |
||
22 | private $http; |
||
23 | |||
24 | /** |
||
25 | * WikiTextHelper constructor. |
||
26 | * |
||
27 | * @param SiteConfiguration $configuration |
||
28 | * @param HttpHelper $http |
||
29 | */ |
||
30 | public function __construct(SiteConfiguration $configuration, HttpHelper $http) |
||
35 | |||
36 | /** |
||
37 | * Gets the HTML for the provided wiki-markup from the MediaWiki service endpoint |
||
38 | * |
||
39 | * @param string $wikiText |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getHtmlForWikiText($wikiText) |
||
63 | } |