You are here

public function Profile::addCollector in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Profiler/Profile.php \Symfony\Component\HttpKernel\Profiler\Profile::addCollector()

Adds a Collector.

Parameters

DataCollectorInterface $collector A DataCollectorInterface instance:

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

File

vendor/symfony/http-kernel/Profiler/Profile.php, line 271

Class

Profile
Profile.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

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