PHP Class Knp\Bundle\KnpBundlesBundle\Twitterer\TrendingBundleTwitterer

Datei anzeigen Open project: KnpLabs/KnpBundles

Public Methods

Method Description
__construct ( EntityManager $em, Buzz\Client\ClientInterface $buzz )
setTwitterParams ( string $template, string $idlePeriod, array $twitterConfig )
tweet ( ) : boolean | Bundle

Private Methods

Method Description
httpRequest ( $url, $content = null, $parameters = [], $headers = [], $method ) Code below is borrowed from HWIOAuthBundle
prepareMessage ( Bundle $trendingBundle ) : string

Method Details

__construct() public method

public __construct ( EntityManager $em, Buzz\Client\ClientInterface $buzz )
$em Doctrine\ORM\EntityManager
$buzz Buzz\Client\ClientInterface

setTwitterParams() public method

public setTwitterParams ( string $template, string $idlePeriod, array $twitterConfig )
$template string
$idlePeriod string
$twitterConfig array

tweet() public method

public tweet ( ) : boolean | Bundle
return boolean | Knp\Bundle\KnpBundlesBundle\Entity\Bundle