承接 mwstake/mediawiki-componentloader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mwstake/mediawiki-componentloader

最新稳定版本:1.0.1

Composer 安装命令:

composer require mwstake/mediawiki-componentloader

包简介

Required for proper initialization of MWStake components

README 文档

README

ComponentLoader for MediaWiki

If a MWStake component needs to access variables from <mediawiki>/includes/DefaultSettings.php (e.g. for registering a new "MediaWiki service") this can no longer be done in the regular static file autoloader, provided by Composer (See https://github.com/wikimedia/mediawiki/commit/80fd54ffb028a649e322ad5548832edaa9081954).

Therefore such components need to require the "componentloader" and extensions using the component must explicitly invoke the "componentloader" at manifest.callback time!

This can easily be done, either directly within the manifest file (e.g. extension.json):

    "callback": "mwsInitComponents"

or, in custom code by direct invocation. E.g.

    "callback": "MediaWiki\\Extension\\MyExt\\Setup::callback"
<?php

namespace MediaWiki\Extension\MyExt;

class Setup {

	public static function callback() {
		mwsInitComponents();
		// Own code
...

统计信息

  • 总下载量: 107.66k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 24
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 未知