Skip to content

Commit

Permalink
fix api ket parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingluscas committed May 17, 2017
1 parent 95c26c3 commit 39c8f4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/PagarMeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class PagarMeServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->mergeConfigFrom(
__DIR__.'/../config/pagarme.php', 'pagarme'
);
$configFile = __DIR__.'/../config/pagarme.php';

$this->mergeConfigFrom($configFile, 'pagarme');

$this->publishes([
__DIR__.'/../config/pagarme.php' => config_path('pagarme.php'),
$configFile => config_path('pagarme.php'),
]);
}

Expand All @@ -32,7 +32,7 @@ public function register()
{
$this->app->singleton('PagarMe', function ($app) {
return new PagarMe(
$app->config->get('pagarme.api_key')
$app->config->get('pagarme.keys.api')
);
});
}
Expand Down

0 comments on commit 39c8f4b

Please sign in to comment.