src/View/Theme/ThemeManager.php
protected static function _initializeTheme($registeredTheme)
    {
        list($theme, $themeName) = pluginSplit($registeredTheme);
        $themeNamespace = preg_replace('/\\//', '\\', $theme);
        $themeClass = $themeNamespace . '\\' . $themeName;
        
        try {
            $theme = new $themeClass();
        } catch (Exception $e) {
            throw new Exception(__d('wasabi_core', 'The theme "{0}" could not be instatiated. Check the namespace and file location.', $themeClass));
        }

        return $theme;
    }
protected static function _initializeTheme($registeredTheme)
    {
        list($theme, $themeName) = pluginSplit($registeredTheme);
        $themeNamespace = preg_replace('/\\//', '\\', $theme);
        $themeClass = $themeNamespace . '\\' . $themeName;
        
        try {
            $theme = new $themeClass();
        } catch (Exception $e) {
            throw new Exception(__d('wasabi_core', 'The theme "{0}" could not be instatiated. Check the namespace and file location.', $themeClass));
        }

        return $theme;
    }
protected static function _initializeTheme ( $ registeredTheme ) { list ( $ theme , $ themeName ) = pluginSplit ( $ registeredTheme ) ; $ themeNamespace = preg_replace ( '/\\//' , '\\' , $ theme ) ; $ themeClass = $ themeNamespace . '\\' . $ themeName ; try { $ theme = new $ themeClass ( ) ; } catch ( Exception $ e ) { throw new Exception ( __d ( 'wasabi_core' , 'The theme "{0}" could not be instatiated. Check the namespace and file location.' , $ themeClass ) ) ; } return $ theme ; }
Initialize a single registered theme.

@param string $registeredTheme
@return Theme
Initialize a single registered theme .