/** * @Route("/hello", name="hello") */ public function helloAction(Request $request) { $screen = new Screen("Hello Word"); $name = $request->query->get('name'); $screen->addChild(new Text("Hi {$name}!")); $remote = new Remote($screen); return $remote->getSymfonyResponse(); }