Exemplo n.º 1
0
 public function myAction($app_id, $vid, $sig)
 {
     $this->logger->debug("index/my with arguments {$app_id}, {$vid}, {$sig}");
     $this->socialManager->authenticate($_GET, SocialNetwork::$MY);
     $this->logger->debug("authenticate {$vid}");
     $this->securityManager->authenticate($vid, SocialNetwork::$MY);
     return new ModelAndView("Index/index", array('user' => $this->securityManager->getUser()));
 }
Exemplo n.º 2
0
 public function sendNotificationAction($message, $socialNetwork, $onlyAdmins = false)
 {
     $socialNetwork = SocialNetwork::parse($socialNetwork);
     try {
         $resultIds = $this->socialManager->sendNotification($message, $socialNetwork, $onlyAdmins);
     } catch (\Exception $ex) {
         return new ModelAndView("Index/error", array('exception' => $ex));
     }
     return new ModelAndView("Index/sendNotification", array('ids' => implode(",", $resultIds)));
 }