Slide 42
Slide 42 text
/**
* @Route("/", name="top")
* @param Request $request
* @return \Symfony\Component\HttpFoundation\JsonResponse
*/
public function index(Request $request)
{
return $this->json([
'message' => 'Welcome to your new controller!',
'path' => 'src/Controller/TopController.php',
'name' => $request->query->get('name'),
]);
}
TSD$POUSPMMFS5PQ$POUSPMMFSQIQ
"OOPUBUJPOͰͷϧʔςΟϯά͕ਖ਼ৗʹಈ࡞
3FRVFTU͔Βͷਖ਼͘͠ड͚औΕΔ