You are here

protected function FileProfilerStorage::getFilename in Zircon Profile 8

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

Gets filename to store data, associated to the token.

Parameters

string $token:

Return value

string The profile filename

3 calls to FileProfilerStorage::getFilename()
FileProfilerStorage::createProfileFromData in vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php
FileProfilerStorage::read in vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php
Reads data associated with the given token.
FileProfilerStorage::write in vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php
Saves a Profile.

File

vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php, line 189

Class

FileProfilerStorage
Storage for profiler using files.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function getFilename($token) {

  // Uses 4 last characters, because first are mostly the same.
  $folderA = substr($token, -2, 2);
  $folderB = substr($token, -4, 2);
  return $this->folder . '/' . $folderA . '/' . $folderB . '/' . $token;
}