You are here

public function Profiler::set in Zircon Profile 8

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

Sets the Collectors associated with this profiler.

Parameters

DataCollectorInterface[] $collectors An array of collectors:

File

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

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function set(array $collectors = array()) {
  $this->collectors = array();
  foreach ($collectors as $collector) {
    $this
      ->add($collector);
  }
}