Skip to content

Commit

Permalink
Replace hard-coded /tmp/ with sys_get_temp_dir()
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich committed Dec 8, 2023
1 parent d5abfd5 commit eac52a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ public static function reset(): void

private static function cacheFileName(ContentRepositoryId $contentRepositoryId): string
{
return '/tmp/nodeTypesConfiguration_' . $contentRepositoryId->value . '.json';
return sys_get_temp_dir() . 'nodeTypesConfiguration_' . $contentRepositoryId->value . '.json';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public static function reset(): void

private static function cacheFileName(ContentRepositoryId $contentRepositoryId): string
{
return '/tmp/contentDimensionsConfiguration_' . $contentRepositoryId->value . '.json';
return sys_get_temp_dir() . 'contentDimensionsConfiguration_' . $contentRepositoryId->value . '.json';
}
}

0 comments on commit eac52a9

Please sign in to comment.