AsseticBundle\Service::write PHP Метод

write() защищенный Метод

protected write ( Assetic\Asset\AssetInterface $asset, Assetic\Factory\AssetFactory $factory )
$asset Assetic\Asset\AssetInterface Asset to write
$factory Assetic\Factory\AssetFactory The factory this asset was generated with
    protected function write(AssetInterface $asset, Factory\AssetFactory $factory)
    {
        $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, $factory);
            }
        } else {
            $this->getAssetWriter()->writeAsset($asset);
        }
        if (null !== $umask) {
            umask($umask);
        }
    }