Skip to content

Commit

Permalink
Update ThemeServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
simplepleb authored Apr 21, 2022
1 parent ae39e88 commit b0bdf51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ThemeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ class ThemeServiceProvider extends ServiceProvider {
*/
public function boot(Router $router)
{
$configPath = __DIR__.'/../config/theme.php';
// $configPath = __DIR__.'/../config/theme.php';

// Publish config.
$this->publishes([$configPath => config_path('theme.php')], 'config');
// $this->publishes([$configPath => config_path('theme.php')], 'config');

$this->publishes([
__DIR__ . '/../publishes/themes' => public_path('themes'),
Expand All @@ -58,7 +58,7 @@ public function boot(Router $router)
$this->addToBlade(['dd', 'dd(%s);']);
$this->addToBlade(['dv', 'dd(get_defined_vars()[%s]);', 'dd(get_defined_vars()["__data"]);']);
$this->addToBlade(['d', 'dump(%s);']);
$this->addToBlade(['themeConfig', 'Theme::getConfig();']);
$this->addToBlade(['themeConfig', 'Theme::getConfig();']);

$this->addToBlade(['get', 'Theme::get(%s);']);
$this->addToBlade(['getIfHas', 'Theme::has(%1$s) ? Theme::get(%1$s) : ""']);
Expand All @@ -84,10 +84,10 @@ public function boot(Router $router)
*/
public function register()
{
$configPath = __DIR__.'/../config/theme.php';
// $configPath = __DIR__.'/../config/theme.php';

// Merge config to allow user overwrite.
$this->mergeConfigFrom($configPath, 'theme');
// $this->mergeConfigFrom($configPath, 'theme');

$app = $this->app;

Expand Down Expand Up @@ -275,4 +275,4 @@ public function provides()
return array('asset', 'theme', 'widget', 'breadcrumb');
}

}
}

0 comments on commit b0bdf51

Please sign in to comment.