@@ -14,18 +14,18 @@ For example:
14
14
'providers' => [
15
15
// a whole bunch of providers
16
16
// remove 'Laravel\Socialite\SocialiteServiceProvider',
17
- ' SocialiteProviders\Manager\ServiceProvider' , // add
17
+ SocialiteProviders\Manager\ServiceProvider::class , // add
18
18
];
19
19
```
20
- * Note: If you would like to use the Socialite Facade, you need to [ install it] ( http://laravel.com/docs/5.0 /authentication#social-authentication ) .
20
+ * Note: If you would like to use the Socialite Facade, you need to [ install it] ( http://laravel.com/docs/5.2 /authentication#social-authentication ) .
21
21
22
22
### 3. Add the Event and Listeners
23
23
24
- * Add ` SocialiteProviders\Manager\SocialiteWasCalled ` event to your ` listen[] ` array in ` <app_name>/Providers/EventServiceProvider ` .
24
+ * Add ` SocialiteProviders\Manager\SocialiteWasCalled::class ` event to your ` listen[] ` array in ` <app_name>/Providers/EventServiceProvider ` .
25
25
26
26
* Add your listeners (i.e. the ones from the providers) to the ` SocialiteProviders\Manager\SocialiteWasCalled[] ` that you just created.
27
27
28
- * The listener that you add for this provider is ` ' JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite@handle' ` .
28
+ * The listener that you add for this provider is ` JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite::class ` .
29
29
30
30
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
31
31
@@ -37,8 +37,8 @@ For example:
37
37
* @var array
38
38
*/
39
39
protected $listen = [
40
- ` SocialiteProviders\Manager\SocialiteWasCalled` => [
41
- ' JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite@handle'
40
+ SocialiteProviders\Manager\SocialiteWasCalled::class => [
41
+ JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite::class
42
42
],
43
43
];
44
44
```
0 commit comments