Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaoda committed Apr 29, 2016
1 parent 00b66a3 commit 2f45269
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ For example:
'providers' => [
// a whole bunch of providers
// remove 'Laravel\Socialite\SocialiteServiceProvider',
'SocialiteProviders\Manager\ServiceProvider', // add
SocialiteProviders\Manager\ServiceProvider::class, // add
];
```
* Note: If you would like to use the Socialite Facade, you need to [install it](http://laravel.com/docs/5.0/authentication#social-authentication).
* Note: If you would like to use the Socialite Facade, you need to [install it](http://laravel.com/docs/5.2/authentication#social-authentication).

### 3. Add the Event and Listeners

* Add `SocialiteProviders\Manager\SocialiteWasCalled` event to your `listen[]` array in `<app_name>/Providers/EventServiceProvider`.
* Add `SocialiteProviders\Manager\SocialiteWasCalled::class` event to your `listen[]` array in `<app_name>/Providers/EventServiceProvider`.

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

* The listener that you add for this provider is `'JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite@handle'`.
* The listener that you add for this provider is `JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite::class`.

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

Expand All @@ -37,8 +37,8 @@ For example:
* @var array
*/
protected $listen = [
`SocialiteProviders\Manager\SocialiteWasCalled` => [
'JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite@handle'
SocialiteProviders\Manager\SocialiteWasCalled::class => [
JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite::class
],
];
```
Expand Down

0 comments on commit 2f45269

Please sign in to comment.