You are here

private function MongoDbProfilerStorage::getProfile in Zircon Profile 8.0

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

Parameters

array $data:

Return value

Profile

2 calls to MongoDbProfilerStorage::getProfile()
MongoDbProfilerStorage::createProfileFromData in vendor/symfony/http-kernel/Profiler/MongoDbProfilerStorage.php
MongoDbProfilerStorage::readChildren in vendor/symfony/http-kernel/Profiler/MongoDbProfilerStorage.php

File

vendor/symfony/http-kernel/Profiler/MongoDbProfilerStorage.php, line 225

Class

MongoDbProfilerStorage

Namespace

Symfony\Component\HttpKernel\Profiler

Code

private function getProfile(array $data) {
  $profile = new Profile($data['token']);
  $profile
    ->setIp($data['ip']);
  $profile
    ->setMethod($data['method']);
  $profile
    ->setUrl($data['url']);
  $profile
    ->setTime($data['time']);
  $profile
    ->setCollectors(unserialize(base64_decode($data['data'])));
  return $profile;
}