From 577a6785187883618de3e4a790fb4a874b4ef069 Mon Sep 17 00:00:00 2001 From: Georg Nagel Date: Tue, 14 Feb 2017 10:21:19 +0100 Subject: [PATCH] laravel 5.4 compatibility --- src/Payum/LaravelPackage/PayumServiceProvider.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Payum/LaravelPackage/PayumServiceProvider.php b/src/Payum/LaravelPackage/PayumServiceProvider.php index 82764aa..2be6a34 100644 --- a/src/Payum/LaravelPackage/PayumServiceProvider.php +++ b/src/Payum/LaravelPackage/PayumServiceProvider.php @@ -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(); }); } @@ -134,4 +134,4 @@ protected function defineRoutes() 'uses' => 'Payum\LaravelPackage\Controller\NotifyController@doUnsafeAction' )); } -} \ No newline at end of file +}