mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-17 02:39:24 +01:00
Add naïve validation for tagging rules (only checks the syntax)
This commit is contained in:
parent
71ef0ed254
commit
3447d1ee07
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user