public function Profile::setCollectors

Sets the Collectors associated with this profile.

Parameters

DataCollectorInterface[] $collectors:

File

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

Class

Profile
Profile.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

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