interface DataCollectorInterface

DataCollectorInterface.

@author Fabien Potencier <fabien@symfony.com>

@api

Hierarchy

Expanded class hierarchy of DataCollectorInterface

All classes that implement DataCollectorInterface

2 files declare their use of DataCollectorInterface
Profile.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/Profile.php
Profiler.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/Profiler.php

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php, line 24

Namespace

Symfony\Component\HttpKernel\DataCollector
View source
interface DataCollectorInterface {

  /**
   * Collects data for the given Request and Response.
   *
   * @param Request    $request   A Request instance
   * @param Response   $response  A Response instance
   * @param \Exception $exception An Exception instance
   *
   * @api
   */
  public function collect(Request $request, Response $response, \Exception $exception = null);

  /**
   * Returns the name of the collector.
   *
   * @return string The collector name
   *
   * @api
   */
  public function getName();

}

Members

Namesort descending Modifiers Type Description Overrides
DataCollectorInterface::collect public function Collects data for the given Request and Response. 8
DataCollectorInterface::getName public function Returns the name of the collector. 8