Esempio n. 1
0
 /**
  * Get the list of comments for a given content.
  *
  * @param array $args
  * @param \Vinelab\Minion\Dictionary $data
  *
  * @return void
  */
 public function get($args, Dictionary $data)
 {
     TokenAuth::loginWithToken($data->access_token);
     $content = Content::make($data);
     return Api::content(['CommentMapper', 'mapFromCache'], $this->comments->get($content, Pagination::make($data)), $this->comments->totalForContent($content));
 }