/**
* @param AssetInterface $asset
*/
protected function write(AssetInterface $asset)
{
$umask = $this->configuration->getUmask();
if (null !== $umask) {
$umask = umask($umask);
}
if ($this->configuration->isDebug() && !$this->configuration->isCombine() && $asset instanceof AssetCollection) {
foreach ($asset as $item) {
$this->writeAsset($item);
}
} else {
$this->getAssetWriter()->writeAsset($asset);
}
if (null !== $umask) {
umask($umask);
}
}