AssetCompress\Factory::writer PHP Method

writer() public method

Create an AssetWriter
public writer ( string $path = TMP ) : AssetWriter
$path string The path to use
return MiniAsset\Output\AssetWriter
    public function writer($path = TMP)
    {
        return parent::writer($path);
    }

Usage Example

 /**
  * Clears the build timestamp. Try to clear it out even if they do not have ts file enabled in
  * the INI.
  *
  * Build timestamp file is only created when build() is run from this shell
  *
  * @return void
  */
 public function clearBuildTs()
 {
     $this->_io->verbose('Clearing build timestamp.');
     $writer = $this->factory->writer();
     $writer->clearTimestamps();
 }