Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\HttpKernel\DataCollector; Chris@0: Chris@0: use Symfony\Component\HttpFoundation\Request; Chris@0: use Symfony\Component\HttpFoundation\Response; Chris@0: Chris@0: /** Chris@0: * DataCollectorInterface. Chris@0: * Chris@0: * @author Fabien Potencier Chris@14: * Chris@14: * @method reset() Resets this data collector to its initial state. Chris@0: */ Chris@0: interface DataCollectorInterface Chris@0: { Chris@0: /** Chris@0: * Collects data for the given Request and Response. Chris@0: */ Chris@0: public function collect(Request $request, Response $response, \Exception $exception = null); Chris@0: Chris@0: /** Chris@0: * Returns the name of the collector. Chris@0: * Chris@0: * @return string The collector name Chris@0: */ Chris@0: public function getName(); Chris@0: }