Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Dec 27, 2014
1 parent 6c9d77e commit c740048
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/AdamWathan/EloquentOAuth/EloquentOAuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class EloquentOAuthServiceProvider extends ServiceProvider {
'google' => 'AdamWathan\\EloquentOAuth\\Providers\\GoogleProvider',
'linkedin' => 'AdamWathan\\EloquentOAuth\\Providers\\LinkedInProvider',
'instagram' => 'AdamWathan\\EloquentOAuth\\Providers\\InstagramProvider',
);
);

/**
* Indicates if loading of the provider is deferred.
Expand Down Expand Up @@ -42,17 +42,16 @@ public function register()

protected function registerOAuthManager()
{
$this->app['adamwathan.oauth'] = $this->app->share(function($app)
{
$this->configureOAuthIdentitiesTable();
$users = new UserStore($app['config']['auth.model']);
$stateManager = new StateManager($app['session.store'], $app['request']);
$authorizer = new Authorizer($app['redirect']);
$authenticator = new Authenticator($app['auth'], $users, new IdentityStore);
$oauth = new OAuthManager($authorizer, $authenticator, $stateManager, new ProviderRegistrar);
$this->registerProviders($oauth);
return $oauth;
});
$this->app['adamwathan.oauth'] = $this->app->share(function ($app) {
$this->configureOAuthIdentitiesTable();
$users = new UserStore($app['config']['auth.model']);
$stateManager = new StateManager($app['session.store'], $app['request']);
$authorizer = new Authorizer($app['redirect']);
$authenticator = new Authenticator($app['auth'], $users, new IdentityStore);
$oauth = new OAuthManager($authorizer, $authenticator, $stateManager, new ProviderRegistrar);
$this->registerProviders($oauth);
return $oauth;
});
}

protected function registerProviders($oauth)
Expand Down

0 comments on commit c740048

Please sign in to comment.