MediaWiki REL1_41
ParsoidServices.php
Go to the documentation of this file.
1<?php
19declare( strict_types = 1 );
20
22
25use Wikimedia\Parsoid\Config\DataAccess;
26use Wikimedia\Parsoid\Config\SiteConfig;
27
35
37 private $services;
38
42 public function __construct( MediaWikiServices $services ) {
43 $this->services = $services;
44 }
45
49 public function getParsoidDataAccess(): DataAccess {
50 wfDeprecated( __METHOD__, '1.39' );
51 return $this->services->getParsoidDataAccess();
52 }
53
58 wfDeprecated( __METHOD__, '1.39' );
59 return $this->services->getParsoidPageConfigFactory();
60 }
61
65 public function getParsoidSiteConfig(): SiteConfig {
66 wfDeprecated( __METHOD__, '1.39' );
67 return $this->services->getParsoidSiteConfig();
68 }
69
70}
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
Service locator for MediaWiki core services.
Helper class used by MediaWiki to create Parsoid PageConfig objects.
__construct(MediaWikiServices $services)
Copyright (C) 2011-2022 Wikimedia Foundation and others.