Skip to content

Commit

Permalink
changes config file name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Sakovich committed Mar 18, 2019
1 parent 298c3eb commit b774927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/Providers/SharedDataServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SharedDataServiceProvider extends ServiceProvider
public function boot()
{
$this->publishes([
__DIR__.'/../../config/shared_data.php' => config_path('shared_data.php'),
__DIR__.'/../../config/shared-data.php' => config_path('shared-data.php'),
], 'shared-data-config');
}

Expand All @@ -27,12 +27,12 @@ public function boot()
public function register()
{
$this->mergeConfigFrom(
__DIR__.'/../../config/shared_data.php',
'shared_data'
__DIR__.'/../../config/shared-data.php',
'shared-data'
);

$this->app->singleton(SharedData::class, function () {
return new SharedData($this->app['config']['shared_data']);
return new SharedData($this->app['config']['shared-data']);
});
}
}

0 comments on commit b774927

Please sign in to comment.