getUmask() public method

public getUmask ( ) : integer | null
return integer | null
Example #1
0
 /**
  * @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);
     }
 }