Skip to content

Commit

Permalink
Merge pull request #43 from schelmo/master
Browse files Browse the repository at this point in the history
laravel 5.4 compatibility
  • Loading branch information
makasim committed Feb 15, 2017
2 parents 2d48533 + 577a678 commit 53b94ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Payum/LaravelPackage/PayumServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ protected function registerServices()
return $builder;
});

$this->app['payum'] = $this->app->share(function($app) {
$this->app->singleton('payum', function($app) {
return $app['payum.builder']->getPayum();
});

$this->app['payum.converter.reply_to_http_response'] = $this->app->share(function($app) {
$this->app->singleton('payum.converter.reply_to_http_response', function($app) {
return new ReplyToSymfonyResponseConverter();
});

$this->app['payum.action.get_http_request'] = $this->app->share(function($app) {
$this->app->singleton('payum.action.get_http_request', function($app) {
return new GetHttpRequestAction();
});

$this->app['payum.action.obtain_credit_card'] = $this->app->share(function($app) {
$this->app->singleton('payum.action.obtain_credit_card', function($app) {
return new ObtainCreditCardAction();
});
}
Expand Down Expand Up @@ -134,4 +134,4 @@ protected function defineRoutes()
'uses' => 'Payum\LaravelPackage\Controller\NotifyController@doUnsafeAction'
));
}
}
}

0 comments on commit 53b94ca

Please sign in to comment.