No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Controller
DependencyInjection
Entity
Lib
Resources
AWTwitterOAuthBundle.php
Exception.php
README.md
Service.php

README.md

Sample Use In A Controller Action

$twitterService = $this->get('aw_twitter_oauth');
$twitterUser = $twitterService->getUserFromSession();
if (!$twitterUser) {
    return $this->redirect(
        $this->generateUrl('aw_twitter_oauth_auth',
            array('continue' => $this->getRequest()->getUri())));
}

Install

  • If you use Git, run git submodule add git@github.com:amyboyd/symfony2-twitter-oauth-bundle.git path/to/bundles/AW/Bundle/TwitterOAuthBundle

  • If you don't use Git, download the source and put it into your bundles directory.

  • Enable AWTwitterOAuthBundle in your app/AppKernel.php

  • Copy the contents of Resources/config/parameters.yml.sample to your own app/config/parameters.yml

  • Review app/console doctrine:schema:update --dump-sql

  • Run app/console doctrine:schema:update --force if the above was OK.