src/View/Theme/ThemeManager.php
public static function loadThemes()
    {
        $themesFolder = new Folder(ROOT . DS . 'themes');
        $themes = $themesFolder->read()[0];
        $loader = require ROOT . DS . 'vendor' . DS . 'autoload.php';
        foreach ($themes as $theme) {
            $loader->addPsr4('WasabiTheme\\' . $theme . '\\', [$themesFolder->path . DS . $theme . DS . 'src']);
            Plugin::load('WasabiTheme/' . $theme, [
                'path' => $themesFolder->path . DS . $theme . DS,
                'bootstrap' => true,
                'routes' => false
            ]);
        }
    }
public static function loadThemes()
    {
        $themesFolder = new Folder(ROOT . DS . 'themes');
        $themes = $themesFolder->read()[0];
        $loader = require ROOT . DS . 'vendor' . DS . 'autoload.php';
        foreach ($themes as $theme) {
            $loader->addPsr4('WasabiTheme\\' . $theme . '\\', [$themesFolder->path . DS . $theme . DS . 'src']);
            Plugin::load('WasabiTheme/' . $theme, [
                'path' => $themesFolder->path . DS . $theme . DS,
                'bootstrap' => true,
                'routes' => false
            ]);
        }
    }
public static function loadThemes ( ) { $ themesFolder = new Folder ( ROOT . DS . 'themes' ) ; $ themes = $ themesFolder -> read ( ) [ 0 ] ; $ loader = require ROOT . DS . 'vendor' . DS . 'autoload.php' ; foreach ( $ themes as $ theme ) { $ loader -> addPsr4 ( 'WasabiTheme\\' . $ theme . '\\' , [ $ themesFolder -> path . DS . $ theme . DS . 'src' ] ) ; Plugin :: load ( 'WasabiTheme/' . $ theme , [ 'path' => $ themesFolder -> path . DS . $ theme . DS , 'bootstrap' => true , 'routes' => false ] ) ; } }
Register all available themes in the composer classloader and load them as plugin.

@return void
Register all available themes in the composer classloader and load them as plugin .