mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
29 lines
519 B
PHP
29 lines
519 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorExecFutureFileUploadSource
|
||
|
extends PhabricatorFileUploadSource {
|
||
|
|
||
|
private $future;
|
||
|
|
||
|
public function setExecFuture(ExecFuture $future) {
|
||
|
$this->future = $future;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getExecFuture() {
|
||
|
return $this->future;
|
||
|
}
|
||
|
|
||
|
protected function newDataIterator() {
|
||
|
$future = $this->getExecFuture();
|
||
|
|
||
|
return id(new LinesOfALargeExecFuture($future))
|
||
|
->setDelimiter(null);
|
||
|
}
|
||
|
|
||
|
protected function getDataLength() {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
}
|