From: Kévin Gomez Date: Wed, 14 Oct 2015 20:48:58 +0000 (+0200) Subject: Add naïve validation for tagging rules (only checks the syntax) X-Git-Tag: 2.0.0-alpha.1~11^2~21 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=3447d1ee07bb64e57e69164127529f957dd47822;p=github%2Fwallabag%2Fwallabag.git Add naïve validation for tagging rules (only checks the syntax) --- 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; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; +use KPhoen\RulerZBundle\Validator\Constraints as RulerZAssert; /** * Config. @@ -27,6 +28,7 @@ class TaggingRule * @var string * * @Assert\NotBlank() + * @RulerZAssert\ValidRule() * @ORM\Column(name="rule", type="string", nullable=false) */ private $rule;