Skip to content

Commit 188c1d9

Browse files
authoredMay 17, 2023
Update SentryServiceProvider.php
1 parent c679730 commit 188c1d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎src/Cartalyst/Sentry/SentryServiceProvider.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function register()
6565
*/
6666
protected function registerHasher()
6767
{
68-
$this->app['sentry.hasher'] = $this->app->share(function($app)
68+
$this->app->singleton('sentry.hasher', function($app)
6969
{
7070
$hasher = $app['config']['cartalyst/sentry::hasher'];
7171

@@ -99,7 +99,7 @@ protected function registerHasher()
9999
*/
100100
protected function registerUserProvider()
101101
{
102-
$this->app['sentry.user'] = $this->app->share(function($app)
102+
$this->app->singleton('sentry.user', function($app)
103103
{
104104
$model = $app['config']['cartalyst/sentry::users.model'];
105105

@@ -151,7 +151,7 @@ protected function registerUserProvider()
151151
*/
152152
protected function registerGroupProvider()
153153
{
154-
$this->app['sentry.group'] = $this->app->share(function($app)
154+
$this->app->singleton('sentry.group', function($app)
155155
{
156156
$model = $app['config']['cartalyst/sentry::groups.model'];
157157

@@ -188,7 +188,7 @@ protected function registerGroupProvider()
188188
*/
189189
protected function registerThrottleProvider()
190190
{
191-
$this->app['sentry.throttle'] = $this->app->share(function($app)
191+
$this->app->singleton('sentry.throttle', function($app)
192192
{
193193
$model = $app['config']['cartalyst/sentry::throttling.model'];
194194

@@ -240,7 +240,7 @@ protected function registerThrottleProvider()
240240
*/
241241
protected function registerSession()
242242
{
243-
$this->app['sentry.session'] = $this->app->share(function($app)
243+
$this->app->singleton('sentry.session', function($app)
244244
{
245245
$key = $app['config']['cartalyst/sentry::cookie.key'];
246246

@@ -255,7 +255,7 @@ protected function registerSession()
255255
*/
256256
protected function registerCookie()
257257
{
258-
$this->app['sentry.cookie'] = $this->app->share(function($app)
258+
$this->app->singleton('sentry.cookie', function($app)
259259
{
260260
$key = $app['config']['cartalyst/sentry::cookie.key'];
261261

@@ -283,7 +283,7 @@ protected function registerCookie()
283283
*/
284284
protected function registerSentry()
285285
{
286-
$this->app['sentry'] = $this->app->share(function($app)
286+
$this->app->singleton('sentry', function($app)
287287
{
288288
return new Sentry(
289289
$app['sentry.user'],

0 commit comments

Comments
 (0)