Permalink
Browse files

Field 不存在

  • Loading branch information...
1 parent d389f47 commit c7a50e8620653797d9041e406d51d2a21ee0e03b @oomusou committed Jul 24, 2016
Showing with 4 additions and 5 deletions.
  1. +4 −5 app/Services/PostService.php
@@ -15,20 +15,19 @@ class PostService
* PostService constructor.
* @param PostRepository $postRepository
*/
- public function __construct(PostRepositry $postRepository)
+ public function __construct(PostRepository $postRepository)
{
$this->postRepository = $postRepository;
}
/**
- * @param int $id
- * @param string $default
+ * @param PostIDPO $po
* @return string
*/
- public function showTitle(int $id, string $default) : string
+ public function showTitle(PostIDPO $po) : string
{
return $this->postRepository
- ->getTitle($id, $default)
+ ->getTitle($po->ip, $po->default)
->title;
}
}

0 comments on commit c7a50e8

Please sign in to comment.