@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class DrydockFilesystemInterface extends DrydockInterface {
4
5 final public function getInterfaceType() {
6 return 'filesystem';
7 }
8
9 /**
10 * Reads a file on the Drydock resource and returns the contents of the file.
11 */
12 abstract public function readFile($path);
13
14 /**
15 * Reads a file on the Drydock resource and saves it as a PhabricatorFile.
16 */
17 abstract public function saveFile($path, $name);
18
19 /**
20 * Writes a file to the Drydock resource.
21 */
22 abstract public function writeFile($path, $data);
23
24}