public function Profiler::__construct

Constructor.

Parameters

ProfilerStorageInterface $storage A ProfilerStorageInterface instance:

LoggerInterface $logger A LoggerInterface instance:

File

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

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function __construct(ProfilerStorageInterface $storage, LoggerInterface $logger = null) {
  $this->storage = $storage;
  $this->logger = $logger;
  $this->collectors = array();
  $this->enabled = true;
}