示例#1
0
 /**
  * @inheritdoc
  */
 public function findById(\string $id) : ProductView
 {
     return $this->repository->findById($id);
 }
示例#2
0
 public function getProductById(GetProductByIdQuery $query)
 {
     $result = $this->viewRepository->findById($query->getId());
     $query->setResult($result);
 }