/** * @param PostService $postService * @param CommentService $commentService */ public function __construct(PostService $postService, CommentService $commentService) { parent::__construct(); $this->postService = $postService; $this->commentService = $commentService; }
/** * @param CategoryService $categoryService */ public function __construct(CategoryService $categoryService) { parent::__construct(); $this->categoryService = $categoryService; }