@@ -65,7 +65,7 @@ public function register()
65
65
*/
66
66
protected function registerHasher ()
67
67
{
68
- $ this ->app [ 'sentry.hasher ' ] = $ this -> app -> share ( function ($ app )
68
+ $ this ->app -> singleton ( 'sentry.hasher ' , function ($ app )
69
69
{
70
70
$ hasher = $ app ['config ' ]['cartalyst/sentry::hasher ' ];
71
71
@@ -99,7 +99,7 @@ protected function registerHasher()
99
99
*/
100
100
protected function registerUserProvider ()
101
101
{
102
- $ this ->app [ 'sentry.user ' ] = $ this -> app -> share ( function ($ app )
102
+ $ this ->app -> singleton ( 'sentry.user ' , function ($ app )
103
103
{
104
104
$ model = $ app ['config ' ]['cartalyst/sentry::users.model ' ];
105
105
@@ -151,7 +151,7 @@ protected function registerUserProvider()
151
151
*/
152
152
protected function registerGroupProvider ()
153
153
{
154
- $ this ->app [ 'sentry.group ' ] = $ this -> app -> share ( function ($ app )
154
+ $ this ->app -> singleton ( 'sentry.group ' , function ($ app )
155
155
{
156
156
$ model = $ app ['config ' ]['cartalyst/sentry::groups.model ' ];
157
157
@@ -188,7 +188,7 @@ protected function registerGroupProvider()
188
188
*/
189
189
protected function registerThrottleProvider ()
190
190
{
191
- $ this ->app [ 'sentry.throttle ' ] = $ this -> app -> share ( function ($ app )
191
+ $ this ->app -> singleton ( 'sentry.throttle ' , function ($ app )
192
192
{
193
193
$ model = $ app ['config ' ]['cartalyst/sentry::throttling.model ' ];
194
194
@@ -240,7 +240,7 @@ protected function registerThrottleProvider()
240
240
*/
241
241
protected function registerSession ()
242
242
{
243
- $ this ->app [ 'sentry.session ' ] = $ this -> app -> share ( function ($ app )
243
+ $ this ->app -> singleton ( 'sentry.session ' , function ($ app )
244
244
{
245
245
$ key = $ app ['config ' ]['cartalyst/sentry::cookie.key ' ];
246
246
@@ -255,7 +255,7 @@ protected function registerSession()
255
255
*/
256
256
protected function registerCookie ()
257
257
{
258
- $ this ->app [ 'sentry.cookie ' ] = $ this -> app -> share ( function ($ app )
258
+ $ this ->app -> singleton ( 'sentry.cookie ' , function ($ app )
259
259
{
260
260
$ key = $ app ['config ' ]['cartalyst/sentry::cookie.key ' ];
261
261
@@ -283,7 +283,7 @@ protected function registerCookie()
283
283
*/
284
284
protected function registerSentry ()
285
285
{
286
- $ this ->app [ 'sentry ' ] = $ this -> app -> share ( function ($ app )
286
+ $ this ->app -> singleton ( 'sentry ' , function ($ app )
287
287
{
288
288
return new Sentry (
289
289
$ app ['sentry.user ' ],
0 commit comments