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;
    }