Skip to content

Commit

Permalink
Merge package/published configs
Browse files Browse the repository at this point in the history
  • Loading branch information
NFarrington committed Apr 10, 2017
1 parent f5b6c0a commit 8526d68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Vatsim/Xml/XmlServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ public function register()
$this->publishes([
$this->dir("config/config.php") => config_path("vatsim-xml.php"),
]);

$this->mergeConfigFrom(
__DIR__ . '/../../config/config.php', 'vatsim-xml'
);
}

$this->app['vatsimxml'] = $this->app->singleton('vatsimxml', function($app){
$this->app->singleton('vatsimxml', function($app){
return new XML( $this->app["config"]->get("vatsim-xml") );
});
}
Expand Down

0 comments on commit 8526d68

Please sign in to comment.