]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/IgnoreOriginInstanceRule.php
Add new Helper to process Ignore Origin rules and RulerZ operator
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / IgnoreOriginInstanceRule.php
index 34aed50c69dec09531fc2747f790ba97f074f77c..ce3b6e7d752e5806d6a2a58fc6bf6822633a5f85 100644 (file)
@@ -11,7 +11,6 @@ use Symfony\Component\Validator\Constraints as Assert;
  *
  * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\IgnoreOriginInstanceRuleRepository")
  * @ORM\Table(name="`ignore_origin_instance_rule`")
- * @ORM\Entity
  */
 class IgnoreOriginInstanceRule implements IgnoreOriginRuleInterface, RuleInterface
 {
@@ -30,7 +29,7 @@ class IgnoreOriginInstanceRule implements IgnoreOriginRuleInterface, RuleInterfa
      * @Assert\NotBlank()
      * @Assert\Length(max=255)
      * @RulerZAssert\ValidRule(
-     *  allowed_variables={"host","pattern"},
+     *  allowed_variables={"host","_all"},
      *  allowed_operators={"=","~"}
      * )
      * @ORM\Column(name="rule", type="string", nullable=false)