Skip to content

Commit

Permalink
添加了twittwer1 账号登录
Browse files Browse the repository at this point in the history
  • Loading branch information
SGKJ2016 committed Oct 16, 2017
1 parent b3c5285 commit f1a885c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/SocialiteManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,28 @@ protected function createTwitterDriver()
);
}

/**
* Create an instance of the specified driver.
*
* @return \Hyhc\Socialite\One\AbstractProvider
*/
protected function createMobileTwitterDriver()
{
$config = $this->app['config']['services.twitter'];

return new TwitterProvider(
$this->app['request'], new TwitterServer($this->formatConfig($config))
);
}

protected function createMobileTwitter1Driver()
{
$config = $this->app['config']['services.twitter1'];

return new TwitterProvider(
$this->app['request'], new TwitterServer($this->formatConfig($config))
);
}
/**
* Format the server configuration.
*
Expand Down

0 comments on commit f1a885c

Please sign in to comment.