Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is an invalid call to method getBooks() on bookService (conatiner), when it should be done on repository taken from the bookService.
Wrong method call.
Code doesn't work because method does not exist.
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); }
Code works because method exists
The text was updated successfully, but these errors were encountered:
af08073
Merge pull request #91 from zio-mitch/main
9aa72fa
Fixes: #90 invalid method call in book handler
Successfully merging a pull request may close this issue.
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:
Expected behavior
Code works because method exists
The text was updated successfully, but these errors were encountered: