src/Core/Application.php
public function loadTheme(string $dirPath, string $configPath)
    {
        $theme = (new ThemeManager($this, $dirPath, new ClassLoader()))
            ->load($dirPath.'/'.trim($configPath, '\/'));

        $this->instance('wp.theme', $theme);

        return $theme;
    }
public function loadTheme(string $dirPath, string $configPath)
    {
        $theme = (new ThemeManager($this, $dirPath, new ClassLoader()))
            ->load($dirPath.'/'.trim($configPath, '\/'));

        $this->instance('wp.theme', $theme);

        return $theme;
    }
public function loadTheme ( string $ dirPath , string $ configPath ) { $ theme = ( new ThemeManager ( $ this , $ dirPath , new ClassLoader ( ) ) ) -> load ( $ dirPath . '/' . trim ( $ configPath , '\/' ) ) ; $ this -> instance ( 'wp.theme' , $ theme ) ; return $ theme ; }
Load current active theme.

@param string $dirPath    The theme directory path.
@param string $configPath The theme relative configuration folder path.

@return ThemeManager
Load current active theme .