public function __construct(ShareAction $share)
 {
     $this->details = array('share' => array('network' => $share->getNetwork()));
     parent::__construct($share->getResource(), $this->details);
 }
Ejemplo n.º 2
0
 protected function dispatchShareEvent(ShareAction $share)
 {
     $resource = $share->getResource();
     if ($resource !== null) {
         $event = new LogSocialmediaShareEvent($share);
         return $this->dispatch($event);
     }
 }