Skip to content

Commit 46607ec

Browse files
committed
+ 5.4 support
1 parent 95b22f5 commit 46607ec

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Ignited/LaravelOmnipay/BaseServiceProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ public function register()
2727
*/
2828
public function registerManager()
2929
{
30-
$this->app['omnipay'] = $this->app->share(function($app)
31-
{
32-
$factory = new GatewayFactory;
30+
$this->app->singleton('omnipay', function ($app) {
31+
$factory = new GatewayFactory;
3332
$manager = new LaravelOmnipayManager($app, $factory);
3433

3534
return $manager;
36-
});
35+
});
3736
}
3837

3938
/**

0 commit comments

Comments
 (0)