From 377d3abd9196f1953ae3313ea87a91a2227242eb Mon Sep 17 00:00:00 2001 From: crtl Date: Wed, 17 Jan 2024 15:52:36 +0100 Subject: [PATCH 1/2] Makes WPAction repeatable --- src/Attribute/WPAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Attribute/WPAction.php b/src/Attribute/WPAction.php index fa6f4d5..e781803 100644 --- a/src/Attribute/WPAction.php +++ b/src/Attribute/WPAction.php @@ -2,6 +2,6 @@ namespace Crtl\WpPluginBase\Attribute; -#[\Attribute(\Attribute::TARGET_METHOD)] +#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::\IS_REPEATABLE)] class WPAction extends WPHook -{} \ No newline at end of file +{} From 0e020c9bc8824d4d7c75743e8c85884b35ba3264 Mon Sep 17 00:00:00 2001 From: crtl Date: Wed, 17 Jan 2024 15:53:04 +0100 Subject: [PATCH 2/2] Makes WPFilter repeatable --- src/Attribute/WPFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Attribute/WPFilter.php b/src/Attribute/WPFilter.php index cf03644..de9783e 100644 --- a/src/Attribute/WPFilter.php +++ b/src/Attribute/WPFilter.php @@ -2,6 +2,6 @@ namespace Crtl\WpPluginBase\Attribute; -#[\Attribute(\Attribute::TARGET_METHOD)] +#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::\IS_REPEATABLE)] class WPFilter extends WPHook -{} \ No newline at end of file +{}