Beispiel #1
0
 public function findInstalledThemes()
 {
     $theme = new Theme();
     $themes = $this->filesystem->directories($theme->getThemesDirectory());
     if (is_array($themes)) {
         foreach ($themes as &$t) {
             $t = new Theme(str_replace($theme->getThemesDirectory() . '/', '', $t));
         }
     }
     return $themes ?: [];
 }
Beispiel #2
0
 public function testGetThemesDirectory()
 {
     $theme = new Theme();
     $this->assertEquals(storage_path() . '/boomcms/themes', $theme->getThemesDirectory());
 }