summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2020-12-04 14:48:36 -0500
committerBrian Evans <grknight@gentoo.org>2020-12-04 14:48:36 -0500
commit97c9437f280de81d6e8d1a8633c13bc5345eb3fe (patch)
tree18d63ea1b5c961ab3ccd676e9c9743be1adb26b3
parentGentooPackages: Use Parser hook interface (diff)
downloadextensions-97c9437f280de81d6e8d1a8633c13bc5345eb3fe.tar.gz
extensions-97c9437f280de81d6e8d1a8633c13bc5345eb3fe.tar.bz2
extensions-97c9437f280de81d6e8d1a8633c13bc5345eb3fe.zip
GentooPackages: Fix up call until it can work natively
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r--GentooPackages/GentooPackages.php2
-rw-r--r--GentooPackages/extension.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/GentooPackages/GentooPackages.php b/GentooPackages/GentooPackages.php
index 8bd8d576..8ee2e4cd 100644
--- a/GentooPackages/GentooPackages.php
+++ b/GentooPackages/GentooPackages.php
@@ -118,7 +118,7 @@ HTML;
return $merged_flags;
}
- public function onParserFirstCallInit($parser) {
+ public static function onParserFirstCallInit($parser) {
$parser->setHook('package-info', 'GentooPackages::packageInfo');
$output = $parser->getOutput();
$output->addModules('ext.gentooPackages');
diff --git a/GentooPackages/extension.json b/GentooPackages/extension.json
index e1f9b2ce..2cb8ab2c 100644
--- a/GentooPackages/extension.json
+++ b/GentooPackages/extension.json
@@ -21,7 +21,7 @@
]
},
"Hooks": {
- "ParserFirstCallInit": "GentooPackages"
+ "ParserFirstCallInit": "GentooPackages::onParserFirstCallInit"
},
"ResourceModules": {
"ext.gentooPackages": {