public function Profile::addCollector

Adds a Collector.

Parameters

DataCollectorInterface $collector A DataCollectorInterface instance:

1 call to Profile::addCollector()
Profile::setCollectors in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/Profile.php
Sets the Collectors associated with this profile.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/Profile.php, line 254

Class

Profile
Profile.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function addCollector(DataCollectorInterface $collector) {
  $this->collectors[$collector
    ->getName()] = $collector;
}