Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/files/uploadsource/PhabricatorExecFutureFileUploadSource.php
12242 views
1
<?php
2
3
final class PhabricatorExecFutureFileUploadSource
4
extends PhabricatorFileUploadSource {
5
6
private $future;
7
8
public function setExecFuture(ExecFuture $future) {
9
$this->future = $future;
10
return $this;
11
}
12
13
public function getExecFuture() {
14
return $this->future;
15
}
16
17
protected function newDataIterator() {
18
$future = $this->getExecFuture();
19
20
return id(new LinesOfALargeExecFuture($future))
21
->setDelimiter(null);
22
}
23
24
protected function getDataLength() {
25
return null;
26
}
27
28
}
29
30