function FileProfilerStorage::getFilename
Gets filename to store data, associated to the token.
3 calls to FileProfilerStorage::getFilename()
- FileProfilerStorage::doRead in vendor/
symfony/ http-kernel/ Profiler/ FileProfilerStorage.php - FileProfilerStorage::removeExpiredProfiles in vendor/
symfony/ http-kernel/ Profiler/ FileProfilerStorage.php - FileProfilerStorage::write in vendor/
symfony/ http-kernel/ Profiler/ FileProfilerStorage.php
File
-
vendor/
symfony/ http-kernel/ Profiler/ FileProfilerStorage.php, line 203
Class
- FileProfilerStorage
- Storage for profiler using files.
Namespace
Symfony\Component\HttpKernel\ProfilerCode
protected function getFilename(string $token) : string {
// 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;
}