コード例 #1
0
ファイル: PostHttp.php プロジェクト: bloveless/posts-module
 /**
  * Cache the post's HTTP response.
  *
  * @param PostInterface $post
  */
 public function cache(PostInterface $post)
 {
     $response = $post->getResponse();
     $response->setTtl($this->settings->get('anomaly.module.posts::ttl'));
 }