mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-31 07:47:28 +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 Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Component\Validator\Constraints as Assert;
|
use Symfony\Component\Validator\Constraints as Assert;
|
||||||
|
use KPhoen\RulerZBundle\Validator\Constraints as RulerZAssert;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Config.
|
* Config.
|
||||||
@ -27,6 +28,7 @@ class TaggingRule
|
|||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
* @Assert\NotBlank()
|
* @Assert\NotBlank()
|
||||||
|
* @RulerZAssert\ValidRule()
|
||||||
* @ORM\Column(name="rule", type="string", nullable=false)
|
* @ORM\Column(name="rule", type="string", nullable=false)
|
||||||
*/
|
*/
|
||||||
private $rule;
|
private $rule;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user