From 278181572e56283827aac10a66bb554f4b57b0a1 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 21 Nov 2024 08:22:13 +0100 Subject: Add extension hook simplepie_after_init (#7007) * Add extension hook simplepie_after_init fix https://github.com/FreshRSS/FreshRSS/issues/7006 * Add documentation note * fix doc get_headers * Syntax void * Forgotten code --- lib/Minz/ExtensionManager.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Minz/ExtensionManager.php b/lib/Minz/ExtensionManager.php index b3756372e..976dddb82 100644 --- a/lib/Minz/ExtensionManager.php +++ b/lib/Minz/ExtensionManager.php @@ -90,10 +90,14 @@ final class Minz_ExtensionManager { 'list' => array(), 'signature' => 'NoneToNone', ), - 'simplepie_before_init' => array( // function($simplePie, $feed) -> none - 'list' => array(), + 'simplepie_after_init' => [ // function(\SimplePie\SimplePie $simplePie, FreshRSS_Feed $feed, bool $result): void + 'list' => [], 'signature' => 'PassArguments', - ), + ], + 'simplepie_before_init' => [ // function(\SimplePie\SimplePie $simplePie, FreshRSS_Feed $feed): void + 'list' => [], + 'signature' => 'PassArguments', + ], ]; /** Remove extensions and hooks from a previous initialisation */ -- cgit v1.2.3