Skip to content

Commit 2f45269

Browse files
committed
Update README.md
1 parent 00b66a3 commit 2f45269

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ For example:
1414
'providers' => [
1515
// a whole bunch of providers
1616
// remove 'Laravel\Socialite\SocialiteServiceProvider',
17-
'SocialiteProviders\Manager\ServiceProvider', // add
17+
SocialiteProviders\Manager\ServiceProvider::class, // add
1818
];
1919
```
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).
2121

2222
### 3. Add the Event and Listeners
2323

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`.
2525

2626
* Add your listeners (i.e. the ones from the providers) to the `SocialiteProviders\Manager\SocialiteWasCalled[]` that you just created.
2727

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`.
2929

3030
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
3131

@@ -37,8 +37,8 @@ For example:
3737
* @var array
3838
*/
3939
protected $listen = [
40-
`SocialiteProviders\Manager\SocialiteWasCalled` => [
41-
'JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite@handle'
40+
SocialiteProviders\Manager\SocialiteWasCalled::class => [
41+
JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite::class
4242
],
4343
];
4444
```

0 commit comments

Comments
 (0)