MediaWiki  master
ParsoidServices.php
Go to the documentation of this file.
1 <?php
19 declare( strict_types = 1 );
20 
21 namespace MediaWiki\Parser\Parsoid;
22 
25 use Wikimedia\Parsoid\Config\DataAccess;
26 use 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 
57  public function getParsoidPageConfigFactory(): PageConfigFactory {
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)