You are here

public function Profile::setCollectors in Zircon Profile 8.0

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

Sets the Collectors associated with this profile.

Parameters

DataCollectorInterface[] $collectors:

File

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

Class

Profile
Profile.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

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