From 8317134779494e09554bfcc5b2f811be3893e182 Mon Sep 17 00:00:00 2001 From: Shamim Rezaie Date: Tue, 17 Dec 2019 00:23:26 +1100 Subject: [PATCH] MDL-69166 core: define payment as a subsystem and pg as a plugin type --- lib/classes/plugin_manager.php | 3 +++ lib/components.json | 4 +++- lib/tests/component_test.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/classes/plugin_manager.php b/lib/classes/plugin_manager.php index d59d585fa0a..1417eeffdeb 100644 --- a/lib/classes/plugin_manager.php +++ b/lib/classes/plugin_manager.php @@ -1923,6 +1923,9 @@ class core_plugin_manager { 'quiz', 'resource', 'scorm', 'survey', 'url', 'wiki', 'workshop' ), + 'pg' => [ + ], + 'plagiarism' => array( ), diff --git a/lib/components.json b/lib/components.json index 81fcc1aabb6..4ed59e8012a 100644 --- a/lib/components.json +++ b/lib/components.json @@ -38,7 +38,8 @@ "contenttype": "contentbank\/contenttype", "theme": "theme", "local": "local", - "h5plib": "h5p\/h5plib" + "h5plib": "h5p\/h5plib", + "pg": "payment\/gateway" }, "subsystems": { "access": null, @@ -94,6 +95,7 @@ "my": "my", "notes": "notes", "pagetype": null, + "payment" : "payment", "pix": null, "plagiarism": "plagiarism", "plugin": null, diff --git a/lib/tests/component_test.php b/lib/tests/component_test.php index 0111d669672..4a3bb07c316 100644 --- a/lib/tests/component_test.php +++ b/lib/tests/component_test.php @@ -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, * 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 { $psr0namespaces = new ReflectionProperty('core_component', 'psr0namespaces');