Commit 47371563 authored by Mat's avatar Mat

test

parent b52eccd1
......@@ -23,8 +23,9 @@ class BrasserieController extends FOSRestController
* @Rest\Get(path="/brasserie")
* @Rest\View(serializerGroups={"getBrasserie"})
*/
public function getAction()
public function getAction(Request $request)
{
dump($request); die;
return $this->getDoctrine()
->getRepository(Brasserie::class)
->findAll();
......@@ -41,7 +42,6 @@ class BrasserieController extends FOSRestController
public function putAction(Request $request, Brasserie $id)
{
// le fait de typer $id fait qu'il retourne un objet !
//dump($request); die;
$form = $this->createForm(BrasserieType::class, $id,
array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment