wrap set layout input
This commit is contained in:
parent
b4a2107724
commit
fac49e43d4
3 changed files with 14 additions and 3 deletions
|
|
@ -17,9 +17,9 @@ class GetSetLayout
|
|||
/**
|
||||
* @throws NotFoundException
|
||||
*/
|
||||
public function execute(int $setId): SetLayout
|
||||
public function execute(GetSetLayoutRequest $request): SetLayout
|
||||
{
|
||||
$set = $this->setRepository->find($setId);
|
||||
$set = $this->setRepository->find($request->setId);
|
||||
if ($set === null) {
|
||||
throw new NotFoundException('set not found');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue