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\EventDispatcher\EventDispatcher;
15 use Symfony\Component\HttpFoundation\Request;
16 use Symfony\Component\HttpFoundation\Response;
17 use Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface;
18 use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface;
19 use Symfony\Component\HttpKernel\HttpKernel;
21 class TestHttpKernel extends HttpKernel implements ControllerResolverInterface, ArgumentResolverInterface
23 public function __construct()
25 parent::__construct(new EventDispatcher(), $this, null, $this);
28 public function getController(Request $request)
30 return array($this, 'callController');
33 public function getArguments(Request $request, $controller)
35 return array($request);
38 public function callController(Request $request)
40 return new Response('Request: '.$request->getRequestUri());