Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | public function load(ObjectManager $manager): void |
||
14 | { |
||
15 | foreach ($this->getFeatureData() as [$name, $icon]) { |
||
16 | $feature = new Feature(); |
||
17 | $feature->setName($name); |
||
18 | $feature->setIcon($icon); |
||
19 | $manager->persist($feature); |
||
20 | $this->addReference($name, $feature); |
||
21 | } |
||
22 | $manager->flush(); |
||
23 | } |
||
39 |