Page MenuHomeWickedGov Phorge

OutputGlobToFile.php
No OneTemporary

Size
640 B
Referenced Files
None
Subscribers
None

OutputGlobToFile.php

<?php
namespace Shellbox\Command;
/**
* An output glob for files that are written to a local directory
*/
class OutputGlobToFile extends OutputGlob {
/** @var string */
private $destDir;
/**
* @internal
* @param string $prefix
* @param string $extension
* @param string $destDir
*/
public function __construct( $prefix, $extension, $destDir ) {
parent::__construct( $prefix, $extension );
$this->destDir = $destDir;
}
public function getOutputFile( $boxedName ) {
$instance = new OutputFileToFile( $this->destDir . '/' . basename( $boxedName ) );
$this->files[$boxedName] = $instance;
return $instance;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Oct 4, 00:22 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fa/c1/2eea60f691865451cd067908f0cb
Default Alt Text
OutputGlobToFile.php (640 B)

Event Timeline