Cześć
Czy mogę w ten sposób typować, czy muszę podejść do tego w inny sposób?
/**
* @FosRest\Get("customer/{id}")
*/
public function getOneCustomer(int $customerId, CustomerService $customerService)
{
return $this->json([
'Customer' => $customerService->getOneById($customerId),
]);
}