diff --git a/src/Vatsim/Xml/XmlServiceProvider.php b/src/Vatsim/Xml/XmlServiceProvider.php index b067e8a..d98ed0c 100644 --- a/src/Vatsim/Xml/XmlServiceProvider.php +++ b/src/Vatsim/Xml/XmlServiceProvider.php @@ -22,9 +22,7 @@ public function dir($path){ */ public function boot() { - $this->publishes([ - __DIR__.'/../../config/config.php' => config_path('vatsim-xml.php') - ]); + } /** @@ -47,7 +45,7 @@ public function register() ]); } - $this->app['vatsimxml'] = $this->app->share(function($app){ + $this->app['vatsimxml'] = $this->app->singleton('vatsimxml', function($app){ return new XML( $this->app["config"]->get("vatsim-xml") ); }); } @@ -59,7 +57,7 @@ public function register() */ public function provides() { - return array("vatsimxml"); + return [XML::class]; } }