4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Tests;
14 use Symfony\Component\HttpKernel\HttpKernel;
15 use Symfony\Component\HttpFoundation\Request;
16 use Symfony\Component\HttpFoundation\Response;
17 use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface;
18 use Symfony\Component\EventDispatcher\EventDispatcher;
20 class TestHttpKernel extends HttpKernel implements ControllerResolverInterface
22 public function __construct()
24 parent::__construct(new EventDispatcher(), $this);
27 public function getController(Request $request)
29 return array($this, 'callController');
32 public function getArguments(Request $request, $controller)
34 return array($request);
37 public function callController(Request $request)
39 return new Response('Request: '.$request->getRequestUri());