Beispiel #1
0
 protected function initialize()
 {
     parent::initialize();
     $parser = new Parser();
     $this->logger->debug('load:' . $this->getFilePath());
     $this->_data = $parser->parse(file_get_contents($this->getFilePath()));
 }
Beispiel #2
0
 public function initialize()
 {
     parent::initialize();
     $consumerKey = $this->container->getParameter('twitter_consumer_key');
     $consumerSecret = $this->container->getParameter('twitter_consumer_secret');
     $oauthToken = $this->container->getParameter('twitter_oauth_token');
     $oauthTokenSecret = $this->container->getParameter('twitter_oauth_token_secret');
     $this->client = new \TwitterOAuth($consumerKey, $consumerSecret, $oauthToken, $oauthTokenSecret);
 }
Beispiel #3
0
 protected function initialize()
 {
     parent::initialize();
     $this->_cache = array();
 }