]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php
Update fixtures
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / DataFixtures / ORM / LoadTaggingRuleData.php
diff --git a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php
deleted file mode 100644 (file)
index 55abd63..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-namespace Wallabag\CoreBundle\DataFixtures\ORM;
-
-use Doctrine\Common\DataFixtures\AbstractFixture;
-use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
-use Doctrine\Common\Persistence\ObjectManager;
-use Wallabag\CoreBundle\Entity\TaggingRule;
-
-class LoadTaggingRuleData extends AbstractFixture implements OrderedFixtureInterface
-{
-    /**
-     * {@inheritdoc}
-     */
-    public function load(ObjectManager $manager)
-    {
-        $tr1 = new TaggingRule();
-        $tr1->setRule('content matches "spurs"');
-        $tr1->setTags(['sport']);
-        $tr1->setConfig($this->getReference('admin-config'));
-
-        $manager->persist($tr1);
-
-        $tr2 = new TaggingRule();
-        $tr2->setRule('content matches "basket"');
-        $tr2->setTags(['sport']);
-        $tr2->setConfig($this->getReference('admin-config'));
-
-        $manager->persist($tr2);
-
-        $tr3 = new TaggingRule();
-
-        $tr3->setRule('title matches "wallabag"');
-        $tr3->setTags(['wallabag']);
-        $tr3->setConfig($this->getReference('admin-config'));
-
-        $manager->persist($tr3);
-
-        $tr4 = new TaggingRule();
-        $tr4->setRule('content notmatches "basket"');
-        $tr4->setTags(['foot']);
-        $tr4->setConfig($this->getReference('admin-config'));
-
-        $manager->persist($tr4);
-
-        $manager->flush();
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function getOrder()
-    {
-        return 40;
-    }
-}