MediaWiki master
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 private MediaWikiServices $services;
36
40 public function __construct( MediaWikiServices $services ) {
41 $this->services = $services;
42 }
43
47 public function getParsoidDataAccess(): DataAccess {
48 wfDeprecated( __METHOD__, '1.39' );
49 return $this->services->getParsoidDataAccess();
50 }
51
56 wfDeprecated( __METHOD__, '1.39' );
57 return $this->services->getParsoidPageConfigFactory();
58 }
59
63 public function getParsoidSiteConfig(): SiteConfig {
64 wfDeprecated( __METHOD__, '1.39' );
65 return $this->services->getParsoidSiteConfig();
66 }
67
68}
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.