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\DataCollector;
14 use Symfony\Component\HttpFoundation\Request;
15 use Symfony\Component\HttpFoundation\Response;
18 * DataCollectorInterface.
20 * @author Fabien Potencier <fabien@symfony.com>
22 interface DataCollectorInterface
25 * Collects data for the given Request and Response.
27 * @param Request $request A Request instance
28 * @param Response $response A Response instance
29 * @param \Exception $exception An Exception instance
31 public function collect(Request $request, Response $response, \Exception $exception = null);
34 * Returns the name of the collector.
36 * @return string The collector name
38 public function getName();