Airship\Cabin\Hull\Landing\Ajax::fetchComments PHP Метод

fetchComments() защищенный Метод

protected fetchComments ( Airship\Engine\Contract\CacheInterface $cache, string $uniqueID )
$cache Airship\Engine\Contract\CacheInterface
$uniqueID string
    protected function fetchComments(CacheInterface $cache, string $uniqueID)
    {
        $blog = $this->blog->getBlogPostByUniqueId($uniqueID);
        $comments = $this->blog->getCommentTree((int) $blog['postid']);
        $contents = $this->lensRender('blog/comments', ['blogpost' => $blog, 'comments' => $comments, 'config' => $this->config()]);
        $cache->set($uniqueID, ['status' => 'OK', 'cached' => $contents]);
        \Airship\json_response(['status' => 'OK', 'cached' => $contents]);
    }