From 538fd258fe5f25e4339929981e0493e515ff3b26 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 24 Apr 2022 18:26:14 +0200 Subject: [PATCH] Use FQCN as service name for Rulerz operators --- src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php | 2 +- .../CoreBundle/Operator/Doctrine/NotMatches.php | 2 +- src/Wallabag/CoreBundle/Operator/PHP/Matches.php | 2 +- src/Wallabag/CoreBundle/Operator/PHP/NotMatches.php | 2 +- .../CoreBundle/Operator/PHP/PatternMatches.php | 2 +- src/Wallabag/CoreBundle/Resources/config/services.yml | 10 +++++----- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php b/src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php index e16101619..9ddd6fae1 100644 --- a/src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php +++ b/src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php @@ -10,7 +10,7 @@ namespace Wallabag\CoreBundle\Operator\Doctrine; * * This operator will be used to compile tagging rules in DQL, usable * by Doctrine ORM. - * It's registered in RulerZ using a service (wallabag.operator.doctrine.matches); + * It's registered in RulerZ using a service; */ class Matches { diff --git a/src/Wallabag/CoreBundle/Operator/Doctrine/NotMatches.php b/src/Wallabag/CoreBundle/Operator/Doctrine/NotMatches.php index 8e50f8d67..a106b0f09 100644 --- a/src/Wallabag/CoreBundle/Operator/Doctrine/NotMatches.php +++ b/src/Wallabag/CoreBundle/Operator/Doctrine/NotMatches.php @@ -10,7 +10,7 @@ namespace Wallabag\CoreBundle\Operator\Doctrine; * * This operator will be used to compile tagging rules in DQL, usable * by Doctrine ORM. - * It's registered in RulerZ using a service (wallabag.operator.doctrine.notmatches); + * It's registered in RulerZ using a service; */ class NotMatches { diff --git a/src/Wallabag/CoreBundle/Operator/PHP/Matches.php b/src/Wallabag/CoreBundle/Operator/PHP/Matches.php index bc0c3f8f7..ef553a899 100644 --- a/src/Wallabag/CoreBundle/Operator/PHP/Matches.php +++ b/src/Wallabag/CoreBundle/Operator/PHP/Matches.php @@ -10,7 +10,7 @@ namespace Wallabag\CoreBundle\Operator\PHP; * * This operator will be used to compile tagging rules in PHP, usable * directly on Entry objects for instance. - * It's registered in RulerZ using a service (wallabag.operator.array.matches); + * It's registered in RulerZ using a service; */ class Matches { diff --git a/src/Wallabag/CoreBundle/Operator/PHP/NotMatches.php b/src/Wallabag/CoreBundle/Operator/PHP/NotMatches.php index bd4d887a6..6b383c0f6 100644 --- a/src/Wallabag/CoreBundle/Operator/PHP/NotMatches.php +++ b/src/Wallabag/CoreBundle/Operator/PHP/NotMatches.php @@ -10,7 +10,7 @@ namespace Wallabag\CoreBundle\Operator\PHP; * * This operator will be used to compile tagging rules in PHP, usable * directly on Entry objects for instance. - * It's registered in RulerZ using a service (wallabag.operator.array.notmatches); + * It's registered in RulerZ using a service; */ class NotMatches { diff --git a/src/Wallabag/CoreBundle/Operator/PHP/PatternMatches.php b/src/Wallabag/CoreBundle/Operator/PHP/PatternMatches.php index 532e2bb39..872187434 100644 --- a/src/Wallabag/CoreBundle/Operator/PHP/PatternMatches.php +++ b/src/Wallabag/CoreBundle/Operator/PHP/PatternMatches.php @@ -10,7 +10,7 @@ namespace Wallabag\CoreBundle\Operator\PHP; * * This operator will be used to compile ignore origin rules in PHP, usable * directly on Entry objects for instance. - * It's registered in RulerZ using a service (wallabag.operator.array.pattern_matches); + * It's registered in RulerZ using a service; */ class PatternMatches { diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 1225aa530..3de117da6 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml @@ -153,27 +153,27 @@ services: - web/img/appicon/apple-touch-icon-152.png - "@security.token_storage" - wallabag.operator.array.matches: + Wallabag\CoreBundle\Operator\PHP\Matches: class: Wallabag\CoreBundle\Operator\PHP\Matches tags: - { name: rulerz.operator, target: native, operator: matches } - wallabag.operator.doctrine.matches: + Wallabag\CoreBundle\Operator\Doctrine\Matches: class: Wallabag\CoreBundle\Operator\Doctrine\Matches tags: - { name: rulerz.operator, target: doctrine, operator: matches, inline: true } - wallabag.operator.array.notmatches: + Wallabag\CoreBundle\Operator\PHP\NotMatches: class: Wallabag\CoreBundle\Operator\PHP\NotMatches tags: - { name: rulerz.operator, target: native, operator: notmatches } - wallabag.operator.doctrine.notmatches: + Wallabag\CoreBundle\Operator\Doctrine\NotMatches: class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches tags: - { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true } - wallabag.operator.array.pattern_matches: + Wallabag\CoreBundle\Operator\PHP\PatternMatches: class: Wallabag\CoreBundle\Operator\PHP\PatternMatches tags: - { name: rulerz.operator, target: native, operator: "~" }