@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
3final class PhabricatorRepositoryConfigOptions
4 extends PhabricatorApplicationConfigOptions {
5
6 public function getName() {
7 return pht('Repositories');
8 }
9
10 public function getDescription() {
11 return pht('Configure repositories.');
12 }
13
14 public function getIcon() {
15 return 'fa-hdd-o';
16 }
17
18 public function getGroup() {
19 return 'apps';
20 }
21
22 public function getApplicationClassName() {
23 return PhabricatorDiffusionApplication::class;
24 }
25
26 public function getOptions() {
27 return array(
28 $this->newOption('repository.default-local-path', 'string', '/var/repo/')
29 ->setLocked(true)
30 ->setSummary(
31 pht('Default location to store local copies of repositories.'))
32 ->setDescription(
33 pht(
34 'The default location in which to store working copies and other '.
35 'data about repositories. %s will control and manage '.
36 'data here, so you should **not** choose an existing directory '.
37 'full of data you care about.',
38 PlatformSymbols::getPlatformServerName())),
39 );
40 }
41
42}