You are here

FileProfilerStorage.php in Devel 8.3

File

webprofiler/src/Profiler/FileProfilerStorage.php
View source
<?php

namespace Drupal\webprofiler\Profiler;

use Symfony\Component\HttpKernel\Profiler\FileProfilerStorage as SymfonyFileProfilerStorage;
use Symfony\Component\HttpKernel\Profiler\Profile;

/**
 * Implements file profiler storage.
 */
class FileProfilerStorage extends SymfonyFileProfilerStorage {

  /**
   * {@inheritdoc}
   */
  protected function createProfileFromData($token, $data, $parent = NULL) {
    $profile = new Profile($token);
    $profile
      ->setIp($data['ip']);
    $profile
      ->setMethod($data['method']);
    $profile
      ->setUrl($data['url']);
    $profile
      ->setTime($data['time']);
    $profile
      ->setCollectors($data['data']);
    $profile
      ->setStatusCode($data['status_code']);
    return $profile;
  }

}

Classes

Namesort descending Description
FileProfilerStorage Implements file profiler storage.