/**
* Create an AssetWriter
*
* @param string $tmpPath The path where the build timestamp lookup should be stored.
* @return MiniAsset\AssetWriter
*/
public function writer($tmpPath = '')
{
if (!$tmpPath) {
$tmpPath = sys_get_temp_dir() . DIRECTORY_SEPARATOR;
}
$timestamp = ['js' => $this->config->get('js.timestamp'), 'css' => $this->config->get('css.timestamp')];
$writer = new AssetWriter($timestamp, $tmpPath, $this->config->theme());
$writer->configTimestamp($this->config->modifiedTime());
$writer->filterRegistry($this->filterRegistry());
return $writer;
}