public function Profiler::set

Sets the Collectors associated with this profiler.

Parameters

DataCollectorInterface[] $collectors An array of collectors:

File

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

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);
  }
}