File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -525,6 +525,7 @@ namespace Api\Book\Handler;
525525use Api\App\Handler\AbstractHandler;
526526use Api\Book\InputFilter\BookInputFilter;
527527use Api\Book\Service\BookServiceInterface;
528+ use Dot\DependencyInjection\Attribute\Inject;
528529use Fig\Http\Message\StatusCodeInterface;
529530use Mezzio\Hal\HalResponseFactory;
530531use Mezzio\Hal\ResourceGenerator;
@@ -562,7 +563,7 @@ class BookHandler extends AbstractHandler implements RequestHandlerInterface
562563
563564 public function getCollection(ServerRequestInterface $request): ResponseInterface
564565 {
565- $books = $this->bookService->getBooks($request->getQueryParams());
566+ $books = $this->bookService->getRepository()-> getBooks($request->getQueryParams());
566567
567568 return $this->createResponse($request, $books);
568569 }
You can’t perform that action at this time.
0 commit comments