Bug Report
There is an invalid call to method getBooks() on bookService (conatiner), when it should be done on repository taken from the bookService.
Summary
Wrong method call.
Current behavior
Code doesn't work because method does not exist.
How to reproduce
Follow the code until these lines:
public function getCollection(ServerRequestInterface $request): ResponseInterface
{
# FIXME should be bookService->getRepository()->getBooks();
$books = $this->bookService->getBooks($request->getQueryParams());
return $this->createResponse($request, $books);
}
Expected behavior
Code works because method exists