You are here

public function Profiler::add in Zircon Profile 8.0

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

Adds a Collector.

Parameters

DataCollectorInterface $collector A DataCollectorInterface instance:

1 call to Profiler::add()
Profiler::set in vendor/symfony/http-kernel/Profiler/Profiler.php
Sets the Collectors associated with this profiler.

File

vendor/symfony/http-kernel/Profiler/Profiler.php, line 247

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

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