Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 728c6dc

Browse filesBrowse files
committed
Naming getTagFile() => getTagLink()
1 parent 3e1deb4 commit 728c6dc
Copy full SHA for 728c6dc

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎src/Symfony/Component/Cache/Adapter/FilesystemTagAwareAdapter.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Adapter/FilesystemTagAwareAdapter.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function doSave(array $values, ?int $lifetime, array $addTagData = [],
6666
}
6767

6868
$file = $this->getFile($id);
69-
$fs->symlink($file, $this->getTagFile($tagId, $id, true));
69+
$fs->symlink($file, $this->getTagLink($tagId, $id, true));
7070
}
7171
}
7272

@@ -78,7 +78,7 @@ protected function doSave(array $values, ?int $lifetime, array $addTagData = [],
7878
continue;
7979
}
8080

81-
$files[] = $this->getTagFile($tagId, $id);
81+
$files[] = $this->getTagLink($tagId, $id);
8282
}
8383
}
8484
$fs->remove($files);
@@ -98,7 +98,7 @@ protected function doDelete(array $ids, array $tagData = []): bool
9898
$fs = $this->getFilesystem();
9999
foreach ($tagData as $tagId => $idMap) {
100100
foreach ($idMap as $id) {
101-
$files[] = $this->getTagFile($tagId, $id);
101+
$files[] = $this->getTagLink($tagId, $id);
102102
}
103103
}
104104
$fs->remove($files);
@@ -148,7 +148,7 @@ private function getTagFolder(string $tagId): string
148148
return $dir.substr($hash, 2, 20).\DIRECTORY_SEPARATOR;
149149
}
150150

151-
private function getTagFile(string $tagId, string $id, bool $mkdir = false)
151+
private function getTagLink(string $tagId, string $id, bool $mkdir = false)
152152
{
153153
$tagFolder = $this->getTagFolder($tagId);
154154
// Use MD5 to favor speed over security, which is not an issue here

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.