You are here

class FileProfilerStorage in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Profiler/FileProfilerStorage.php \Drupal\webprofiler\Profiler\FileProfilerStorage
  2. 8 webprofiler/src/Profiler/FileProfilerStorage.php \Drupal\webprofiler\Profiler\FileProfilerStorage
  3. 8.2 webprofiler/src/Profiler/FileProfilerStorage.php \Drupal\webprofiler\Profiler\FileProfilerStorage

Implements file profiler storage.

Hierarchy

  • class \Drupal\webprofiler\Profiler\FileProfilerStorage extends \Symfony\Component\HttpKernel\Profiler\FileProfilerStorage

Expanded class hierarchy of FileProfilerStorage

1 string reference to 'FileProfilerStorage'
webprofiler.services.yml in webprofiler/webprofiler.services.yml
webprofiler/webprofiler.services.yml
1 service uses FileProfilerStorage
profiler.file_storage in webprofiler/webprofiler.services.yml
Drupal\webprofiler\Profiler\FileProfilerStorage

File

webprofiler/src/Profiler/FileProfilerStorage.php, line 11

Namespace

Drupal\webprofiler\Profiler
View source
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;
  }

}

Members