Skip to content

Commit 2cf6960

Browse files
authored
Laravel 5.4 compatibility
https://laravel.com/docs/5.4/upgrade share Method Removed The share method has been removed from the container. This was a legacy method that has not been documented in several years. If you are using this method, you should begin using the singleton method instead: $container->singleton('foo', function () { return 'foo'; });
1 parent 3854d0f commit 2cf6960

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TunnelerServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function register()
4343
}
4444
$this->mergeConfigFrom($this->configPath, 'tunneler');
4545

46-
$this->app['command.tunneler.activate'] = $this->app->share(
46+
$this->app->singleton('command.tunneler.activate',
4747
function ($app) {
4848
return new TunnelerCommand();
4949
}
@@ -62,4 +62,4 @@ public function provides()
6262
return array('command.tunneler.activate');
6363
}
6464

65-
}
65+
}

0 commit comments

Comments
 (0)