定制 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
  • 点击次数: 0
  • 依赖项目数: 24
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固