コード例 #1
0
 protected function dispatchLikeEvent(LikeAction $like)
 {
     $resource = $like->getResource();
     if ($resource !== null) {
         $event = new LogSocialmediaLikeEvent($like);
         return $this->dispatch($event);
     }
 }
コード例 #2
0
 public function __construct(LikeAction $like)
 {
     $this->details = array();
     parent::__construct($like->getResource(), $this->details);
 }