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 * @method reset() Resets this data collector to its initial state.
24 interface DataCollectorInterface
27 * Collects data for the given Request and Response.
29 public function collect(Request $request, Response $response, \Exception $exception = null);
32 * Returns the name of the collector.
34 * @return string The collector name
36 public function getName();