Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 612 Bytes
<?php
use \Melp\TestingBundle\Controller\DefaultController as Controller;
$controller = new Controller();
// This could be inlined by the Router component
$get = $request->query->all();
$response = $controller->indexAction($get['name']);
// This could be inlined by the Templating request listener
if (is_array($response)) {
$env = $response;
$response = new \Symfony\Component\HttpFoundation\Response(
// this could be inlined by the templating compiler.
// result of compiling 'MelpTestingBundle:Default:index.html.twig'
'Hello ' . htmlspecialchars($env['name'])
);
}