File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -416,17 +416,17 @@ The Controller would look like this:
416
416
namespace App\C ontroller\B ook;
417
417
418
418
use ApiPlatform\C ore\B ridge\D octrine\O rm\P aginator;
419
- use App\S ervice \B ook \B ookService ;
419
+ use App\R epository \B ookRepository ;
420
420
use Symfony\B undle\F rameworkBundle\C ontroller\A bstractController;
421
421
use Symfony\C omponent\H ttpFoundation\R equest;
422
422
423
423
class GetBooksByFavoriteAuthorAction extends AbstractController
424
424
{
425
- public function __invoke(Request $request, BookService $bookService ): Paginator
425
+ public function __invoke(Request $request, BookRepository $bookRepository ): Paginator
426
426
{
427
427
$page = (int) $request->query->get('page', 1);
428
428
429
- return $bookService ->getBooksByFavoriteAuthor($page);
429
+ return $bookRepository ->getBooksByFavoriteAuthor($page);
430
430
}
431
431
}
432
432
` ` `
You can’t perform that action at this time.
0 commit comments