-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.php
74 lines (70 loc) · 2.81 KB
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
if ( defined( 'MWSTAKE_MEDIAWIKI_COMPONENT_INPUTPROCESSOR_VERSION' ) ) {
return;
}
define( 'MWSTAKE_MEDIAWIKI_COMPONENT_INPUTPROCESSOR_VERSION', '1.0.6' );
MWStake\MediaWiki\ComponentLoader\Bootstrapper::getInstance()
->register( 'inputprocessor', static function () {
$GLOBALS['wgServiceWiringFiles'][] = __DIR__ . '/includes/ServiceWiring.php';
$GLOBALS['wgMessagesDirs']['mwstake-component-inputprocessor'] = __DIR__ . '/i18n';
$GLOBALS['mwsgInputProcessorRegistry'] = [
'integer' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\IntValue'
],
'integer-list' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\IntListValue'
],
'boolean' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\BoolValue'
],
'keyword' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\KeywordValue'
],
'keyword-list' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\KeywordListValue'
],
'title' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\TitleValue',
'services' => [ 'TitleFactory', 'PermissionManager' ]
],
'title-list' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\TitleListValue',
'services' => [ 'TitleFactory', 'PermissionManager' ]
],
'namespace' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\NamespaceValue',
'services' => [ 'NamespaceInfo', 'ContentLanguage' ]
],
'namespace-list' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\NamespaceListValue',
'services' => [ 'NamespaceInfo', 'ContentLanguage' ]
],
'category' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\CategoryValue',
'services' => [ 'TitleFactory', 'PermissionManager', 'DBLoadBalancer' ]
],
'category-list' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\CategoryListValue',
'services' => [ 'TitleFactory', 'PermissionManager', 'DBLoadBalancer' ]
],
'username' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\UsernameValue',
'services' => [ 'UserFactory' ]
],
'username-list' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\UsernameListValue',
'services' => [ 'UserFactory' ]
],
'usergroup' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\UserGroupValue',
'services' => [ 'UserGroupManager' ]
],
'usergroup-list' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\UserGroupListValue',
'services' => [ 'UserGroupManager' ]
],
'string' => [
'class' => '\\MWStake\\MediaWiki\\Component\\InputProcessor\\Processor\\StringValue'
]
];
} );