¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -15,7 +15,7 @@ class ThemeServiceProvider extends ServiceProvider
*/
public function boot()
{
if (! config('app.installed')) {
if (!config('app.installed')) {
return;
}
@@ -30,10 +30,12 @@ class ThemeServiceProvider extends ServiceProvider
$this->bootTheme($this->app['stylist']->get($activeTheme));
}
/**
* Boot the given theme.
*
* @param \Mehedi\Stylist\Theme\Theme $theme
* @param Theme $theme
*
* @return void
*/
private function bootTheme(Theme $theme)
@@ -50,10 +52,12 @@ class ThemeServiceProvider extends ServiceProvider
$this->requireFiles($theme, $files);
}
/**
* Register given service providers.
*
* @param array $providers
*
* @return void
*/
private function registerProviders($providers = [])
@@ -63,11 +67,13 @@ class ThemeServiceProvider extends ServiceProvider
}
}
/**
* Load translations for the given theme.
*
* @param string $themeAlias
* @param \Mehedi\Stylist\Theme\Theme $theme
* @param Theme $theme
*
* @return void
*/
private function loadTranslations(Theme $theme, $themeAlias)
@@ -75,11 +81,13 @@ class ThemeServiceProvider extends ServiceProvider
$this->loadTranslationsFrom("{$theme->getPath()}/resources/lang", $themeAlias);
}
/**
* Load configs for the given theme.
*
* @param string $themeAlias
* @param \Mehedi\Stylist\Theme\Theme $theme
* @param Theme $theme
*
* @return void
*/
private function loadConfigs(Theme $theme, $themeAlias)
@@ -95,11 +103,13 @@ class ThemeServiceProvider extends ServiceProvider
});
}
/**
* Require the given files.
*
* @param \Mehedi\Stylist\Theme\Theme $theme
* @param Theme $theme
* @param array $files
*
* @return void
*/
private function requireFiles(Theme $theme, $files = [])