mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-22 07:36:33 +00:00
Move fixtures to the right place
This commit is contained in:
parent
af95c09c80
commit
f06f840c9d
2 changed files with 8 additions and 6 deletions
|
@ -16,12 +16,6 @@ class LoadConfigData extends AbstractFixture implements OrderedFixtureInterface
|
|||
public function load(ObjectManager $manager)
|
||||
{
|
||||
$adminConfig = new Config($this->getReference('admin-user'));
|
||||
$taggingRule = new TaggingRule();
|
||||
|
||||
$taggingRule->setConfig($adminConfig);
|
||||
$taggingRule->setRule('title matches "wallabag"');
|
||||
$taggingRule->setTags(['wallabag']);
|
||||
$manager->persist($taggingRule);
|
||||
|
||||
$adminConfig->setTheme('material');
|
||||
$adminConfig->setItemsPerPage(30);
|
||||
|
|
|
@ -28,6 +28,14 @@ class LoadTaggingRuleData extends AbstractFixture implements OrderedFixtureInter
|
|||
|
||||
$manager->persist($tr2);
|
||||
|
||||
$tr3 = new TaggingRule();
|
||||
|
||||
$tr3->setRule('title matches "wallabag"');
|
||||
$tr3->setTags(['wallabag']);
|
||||
$tr3->setConfig($this->getReference('admin-config'));
|
||||
|
||||
$manager->persist($tr3);
|
||||
|
||||
$manager->flush();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue