Skip to content

Commit 530ecc4

Browse files
authored
Merge pull request #12 from mabailey-ph/master
Replaced SHARE with SINGLETON
2 parents 4063427 + 4d706f1 commit 530ecc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function register()
2121
$configPath = __DIR__ . '/../config/omnipay.php';
2222
$this->publishes([$configPath => config_path('omnipay.php')]);
2323

24-
$this->app['omnipay'] = $this->app->share(function ($app){
24+
$this->app->singleton('omnipay',function ($app){
2525
$defaults = $app['config']->get('omnipay.defaults', array());
2626
return new GatewayManager($app, new GatewayFactory, $defaults);
2727
});

0 commit comments

Comments
 (0)