Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 689 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->dbAction(
$get['name'],
include APP_ROOT . '/services/doctrine/orm/default_entity_manager.php'
);
// 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['real_name'])
);
}