Created
November 10, 2011 06:10
-
-
Save gigo6000/1354239 to your computer and use it in GitHub Desktop.
Connect to twitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @Route("/connectTwitter", name="connect_twitter") | |
* | |
*/ | |
public function connectTwitterAction() | |
{ | |
$request = $this->get('request'); | |
$twitter = $this->get('fos_twitter.service'); | |
$authURL = $twitter->getLoginUrl($request); | |
$response = new RedirectResponse($authURL); | |
return $response; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment