diff --git a/src/Vatsim/Xml/XmlServiceProvider.php b/src/Vatsim/Xml/XmlServiceProvider.php index d98ed0c..0120da8 100644 --- a/src/Vatsim/Xml/XmlServiceProvider.php +++ b/src/Vatsim/Xml/XmlServiceProvider.php @@ -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") ); }); }