Skip to content

Commit

Permalink
L5.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
NFarrington committed Apr 10, 2017
1 parent 8e2440e commit f5b6c0a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Vatsim/Xml/XmlServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ public function dir($path){
*/
public function boot()
{
$this->publishes([
__DIR__.'/../../config/config.php' => config_path('vatsim-xml.php')
]);

}

/**
Expand All @@ -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") );
});
}
Expand All @@ -59,7 +57,7 @@ public function register()
*/
public function provides()
{
return array("vatsimxml");
return [XML::class];
}

}

0 comments on commit f5b6c0a

Please sign in to comment.