MDL-69166 core: define payment as a subsystem and pg as a plugin type

This commit is contained in:
Shamim Rezaie 2019-12-17 00:23:26 +11:00
parent aed0ee06f9
commit 9d77bf7c9b
3 changed files with 7 additions and 2 deletions

View file

@ -1923,6 +1923,9 @@ class core_plugin_manager {
'quiz', 'resource', 'scorm', 'survey', 'url', 'wiki', 'workshop' 'quiz', 'resource', 'scorm', 'survey', 'url', 'wiki', 'workshop'
), ),
'pg' => [
],
'plagiarism' => array( 'plagiarism' => array(
), ),

View file

@ -38,7 +38,8 @@
"contenttype": "contentbank\/contenttype", "contenttype": "contentbank\/contenttype",
"theme": "theme", "theme": "theme",
"local": "local", "local": "local",
"h5plib": "h5p\/h5plib" "h5plib": "h5p\/h5plib",
"pg": "payment\/gateway"
}, },
"subsystems": { "subsystems": {
"access": null, "access": null,
@ -94,6 +95,7 @@
"my": "my", "my": "my",
"notes": "notes", "notes": "notes",
"pagetype": null, "pagetype": null,
"payment" : "payment",
"pix": null, "pix": null,
"plagiarism": "plagiarism", "plagiarism": "plagiarism",
"plugin": null, "plugin": null,

View file

@ -36,7 +36,7 @@ class core_component_testcase extends advanced_testcase {
* this is defined here to annoy devs that try to add more without any thinking, * this is defined here to annoy devs that try to add more without any thinking,
* always verify that it does not collide with any existing add-on modules and subplugins!!! * always verify that it does not collide with any existing add-on modules and subplugins!!!
*/ */
const SUBSYSTEMCOUNT = 71; const SUBSYSTEMCOUNT = 72;
public function setUp(): void { public function setUp(): void {
$psr0namespaces = new ReflectionProperty('core_component', 'psr0namespaces'); $psr0namespaces = new ReflectionProperty('core_component', 'psr0namespaces');