Skip to content

Commit e1ce20f

Browse files
switched from share to singleton due to 5.4 deprecation
1 parent 7eeeb1a commit e1ce20f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
composer.phar
33
composer.lock
44
.DS_Store
5+
.idea/

src/Netshell/Paypal/PaypalServiceProvider.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ class PaypalServiceProvider extends ServiceProvider {
4343
*/
4444
public function register()
4545
{
46-
$this->app['Paypal'] = $this->app->share(function($app)
47-
{
46+
$this->app->singleton('Paypal', function($app) {
4847
return new Paypal();
4948
});
5049
}

0 commit comments

Comments
 (0)