aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorKévin Gomez <contact@kevingomez.fr>2015-10-14 22:48:58 +0200
committerKévin Gomez <contact@kevingomez.fr>2015-11-11 16:23:49 +0100
commit3447d1ee07bb64e57e69164127529f957dd47822 (patch)
tree786de1e93922e8d23da283fe61becb60aa778f54 /src/Wallabag
parent71ef0ed2542e3dff3b64910ef9e3543fa568ffdb (diff)
downloadwallabag-3447d1ee07bb64e57e69164127529f957dd47822.tar.gz
wallabag-3447d1ee07bb64e57e69164127529f957dd47822.tar.zst
wallabag-3447d1ee07bb64e57e69164127529f957dd47822.zip
Add naïve validation for tagging rules (only checks the syntax)
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Entity/TaggingRule.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/TaggingRule.php b/src/Wallabag/CoreBundle/Entity/TaggingRule.php
index 6d03a34d..20c15258 100644
--- a/src/Wallabag/CoreBundle/Entity/TaggingRule.php
+++ b/src/Wallabag/CoreBundle/Entity/TaggingRule.php
@@ -4,6 +4,7 @@ namespace Wallabag\CoreBundle\Entity;
4 4
5use Doctrine\ORM\Mapping as ORM; 5use Doctrine\ORM\Mapping as ORM;
6use Symfony\Component\Validator\Constraints as Assert; 6use Symfony\Component\Validator\Constraints as Assert;
7use KPhoen\RulerZBundle\Validator\Constraints as RulerZAssert;
7 8
8/** 9/**
9 * Config. 10 * Config.
@@ -27,6 +28,7 @@ class TaggingRule
27 * @var string 28 * @var string
28 * 29 *
29 * @Assert\NotBlank() 30 * @Assert\NotBlank()
31 * @RulerZAssert\ValidRule()
30 * @ORM\Column(name="rule", type="string", nullable=false) 32 * @ORM\Column(name="rule", type="string", nullable=false)
31 */ 33 */
32 private $rule; 34 private $rule;