| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function regenerateThemes(): bool |
||
| 45 | { |
||
| 46 | // regenerate the themes list |
||
| 47 | $this->themeSyncHelper->regenerate(); |
||
| 48 | // set all themes as active @todo this is probably overkill |
||
| 49 | $themes = $this->em->getRepository('ZikulaThemeModule:ThemeEntity')->findAll(); |
||
| 50 | /** @var ThemeEntity $theme */ |
||
| 51 | foreach ($themes as $theme) { |
||
| 52 | $theme->setState(ThemeEntityRepository::STATE_ACTIVE); |
||
| 53 | } |
||
| 54 | $this->em->flush(); |
||
| 55 | |||
| 56 | return true; |
||
| 57 | } |
||
| 59 |