Пример #1
0
 /**
  * @param UserRepositoryInterface $user
  * @param PostRepositoryInterface $posts
  */
 public function __construct(UserRepositoryInterface $user, PostRepositoryInterface $posts)
 {
     parent::__construct();
     $this->user = $user;
     $this->posts = $posts;
 }
Пример #2
0
 /**
  * Setup the post data
  *
  * @param PostRepositoryInterface $post
  */
 public function __construct(PostRepositoryInterface $post)
 {
     parent::__construct();
     $this->post = $post;
 }