Compare commits
2 Commits
d576c980d3
...
7c61e9e9f2
Author | SHA1 | Date | |
---|---|---|---|
7c61e9e9f2 | |||
7f975e64ce |
@ -26,10 +26,10 @@ class APISearchController extends AbstractController
|
|||||||
public function index(): Response
|
public function index(): Response
|
||||||
{
|
{
|
||||||
$datas = $this->search();
|
$datas = $this->search();
|
||||||
|
|
||||||
return $this->render('apiSearch/index.html.twig', [
|
return $this->render('apiSearch/index.html.twig', [
|
||||||
'controller_name' => 'APISearchController',
|
'controller_name' => 'APISearchController',
|
||||||
'datas' => $datas,
|
'datas' => $datas,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ class GoogleBooksService
|
|||||||
|
|
||||||
// Convertir la réponse JSON en tableau PHP
|
// Convertir la réponse JSON en tableau PHP
|
||||||
$dataArray = $response->toArray();
|
$dataArray = $response->toArray();
|
||||||
|
|
||||||
return $dataArray;
|
return $dataArray;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user