Move shared strings caching strategy into its own component

This will help implementing different caching strategies:
- file based
- in-memory
This commit is contained in:
Adrien Loison committed 2015-07-11 14:12:18 -07:00
1 parent cf239905d7
commit 2dcb86aae9
6 files changed
+323 -133

No files matched your search

@@ -106,6 +106,19 @@ class GlobalFunctionsHelper
return fputcsv($handle, $fields, $delimiter, $enclosure);
}
/**
* Wrapper around global function fwrite()
* @see fwrite()
*
* @param resource $handle
* @param string $string
* @return int
*/
public function fwrite($handle, $string)
{
return fwrite($handle, $string);
}
/**
* Wrapper around global function fclose()
* @see fclose()