Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class IgnoreOriginUserRuleFixtures extends Fixture implements DependentFixtureInterface |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | public function load(ObjectManager $manager) |
||
17 | { |
||
18 | $rule = new IgnoreOriginUserRule(); |
||
19 | $rule->setRule('host = "example.fr"'); |
||
20 | $rule->setConfig($this->getReference('admin-user')->getConfig()); |
||
21 | |||
22 | $manager->persist($rule); |
||
23 | |||
24 | $manager->flush(); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function getDependencies() |
||
34 | ]; |
||
35 | } |
||
37 |