protected function MongoDbProfilerStorage::createProfileFromData in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Profiler/MongoDbProfilerStorage.php \Symfony\Component\HttpKernel\Profiler\MongoDbProfilerStorage::createProfileFromData()
Parameters
array $data:
Return value
1 call to MongoDbProfilerStorage::createProfileFromData()
- MongoDbProfilerStorage::read in vendor/
symfony/ http-kernel/ Profiler/ MongoDbProfilerStorage.php - Reads data associated with the given token.
File
- vendor/
symfony/ http-kernel/ Profiler/ MongoDbProfilerStorage.php, line 123
Class
Namespace
Symfony\Component\HttpKernel\ProfilerCode
protected function createProfileFromData(array $data) {
$profile = $this
->getProfile($data);
if ($data['parent']) {
$parent = $this
->getMongo()
->findOne(array(
'_id' => $data['parent'],
'data' => array(
'$exists' => true,
),
));
if ($parent) {
$profile
->setParent($this
->getProfile($this
->getData($parent)));
}
}
$profile
->setChildren($this
->readChildren($data['token']));
return $profile;
}