Skip to content

Commit

Permalink
Merge pull request #2 from NFarrington/master
Browse files Browse the repository at this point in the history
Update for L5.2
  • Loading branch information
Anthony Lawrence committed Jan 10, 2016
2 parents 77e9393 + e6ba353 commit 4f5f62d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"require": {
"php": ">=5.4.0",
"illuminate/support": "4.2.*"
"illuminate/support": "5.*"
},
"autoload": {
"classmap": [
Expand Down
10 changes: 8 additions & 2 deletions src/Vatsim/Xml/XmlServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class XmlServiceProvider extends ServiceProvider {
*/
public function boot()
{
$this->package('vatsim/xml');
$this->publishes([
__DIR__.'/../../config/config.php' => config_path('vatsim-xml.php')
]);
}

/**
Expand All @@ -28,9 +30,13 @@ public function boot()
*/
public function register()
{
$this->mergeConfigFrom(
__DIR__.'/../../config/config.php', 'vatsimxml'
);

$this->app['vatsimxml'] = $this->app->share(function($app)
{
return new XML( $app['config']->get('xml::config') );
return new XML($app['config']->get('vatsimxml'));
});
}

Expand Down

0 comments on commit 4f5f62d

Please sign in to comment.