Merge "Mark Parsoid configuration classes @internal"
This commit is contained in:
commit
87bec9d39e
5 changed files with 10 additions and 2 deletions
|
|
@ -1539,6 +1539,7 @@ class MediaWikiServices extends ServiceContainer {
|
|||
/**
|
||||
* @return DataAccess
|
||||
* @since 1.39
|
||||
* @internal
|
||||
*/
|
||||
public function getParsoidDataAccess(): DataAccess {
|
||||
return $this->getService( 'ParsoidDataAccess' );
|
||||
|
|
@ -1565,6 +1566,7 @@ class MediaWikiServices extends ServiceContainer {
|
|||
/**
|
||||
* @return PageConfigFactory
|
||||
* @since 1.39
|
||||
* @internal
|
||||
*/
|
||||
public function getParsoidPageConfigFactory(): PageConfigFactory {
|
||||
return $this->getService( 'ParsoidPageConfigFactory' );
|
||||
|
|
@ -1573,6 +1575,7 @@ class MediaWikiServices extends ServiceContainer {
|
|||
/**
|
||||
* @return SiteConfig
|
||||
* @since 1.39
|
||||
* @internal
|
||||
*/
|
||||
public function getParsoidSiteConfig(): SiteConfig {
|
||||
return $this->getService( 'ParsoidSiteConfig' );
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ use Wikimedia\Parsoid\Core\ContentMetadataCollector;
|
|||
* Implement Parsoid's abstract class for data access.
|
||||
*
|
||||
* @since 1.39
|
||||
* @internal
|
||||
*/
|
||||
class DataAccess extends IDataAccess {
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,10 @@ use Wikimedia\Parsoid\Config\PageContent as IPageContent;
|
|||
/**
|
||||
* Page-level configuration interface for Parsoid
|
||||
*
|
||||
* @todo We should probably deprecate ParserOptions somehow, using a version of
|
||||
* this directly instead.
|
||||
* This is effectively "Parsoid's view of ParserOptions".
|
||||
*
|
||||
* @since 1.39
|
||||
* @internal
|
||||
*/
|
||||
class PageConfig extends IPageConfig {
|
||||
|
||||
|
|
@ -149,6 +150,7 @@ class PageConfig extends IPageConfig {
|
|||
}
|
||||
|
||||
/**
|
||||
* @internal Used by DataAccess; not part of Parsoid's interface.
|
||||
* @return ParserOptions
|
||||
*/
|
||||
public function getParserOptions(): ParserOptions {
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ use WikitextContent;
|
|||
* Helper class used by MediaWiki to create Parsoid PageConfig objects.
|
||||
*
|
||||
* @since 1.39
|
||||
* @internal
|
||||
*/
|
||||
class PageConfigFactory extends \Wikimedia\Parsoid\Config\PageConfigFactory {
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ use Wikimedia\Parsoid\Utils\Utils;
|
|||
* This includes both global configuration and wiki-level configuration.
|
||||
*
|
||||
* @since 1.39
|
||||
* @internal
|
||||
*/
|
||||
class SiteConfig extends ISiteConfig {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue