Skip to content

Commit

Permalink
laravel 5.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
schelmo committed Feb 14, 2017
1 parent 2d48533 commit 577a678
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 577a678

Please sign in to comment.