@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add the "Extending Phabricator" config group.

Summary: Refs T2255 and takes care of the "EXTENDING PHABRICATOR" group thereof.

Test Plan: Looked at each of the new options.

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2255

Differential Revision: https://secure.phabricator.com/D4325

authored by

Ricky Elrod and committed by
epriestley
7b2ab1a4 cad54630

+45
+2
src/__phutil_library_map__.php
··· 763 763 'PhabricatorEventEngine' => 'infrastructure/events/PhabricatorEventEngine.php', 764 764 'PhabricatorEventType' => 'infrastructure/events/constant/PhabricatorEventType.php', 765 765 'PhabricatorExampleEventListener' => 'infrastructure/events/PhabricatorExampleEventListener.php', 766 + 'PhabricatorExtendingPhabricatorConfigOptions' => 'applications/config/option/PhabricatorExtendingPhabricatorConfigOptions.php', 766 767 'PhabricatorFacebookConfigOptions' => 'applications/config/option/PhabricatorFacebookConfigOptions.php', 767 768 'PhabricatorFactAggregate' => 'applications/fact/storage/PhabricatorFactAggregate.php', 768 769 'PhabricatorFactChartController' => 'applications/fact/controller/PhabricatorFactChartController.php', ··· 2103 2104 'PhabricatorEvent' => 'PhutilEvent', 2104 2105 'PhabricatorEventType' => 'PhutilEventType', 2105 2106 'PhabricatorExampleEventListener' => 'PhutilEventListener', 2107 + 'PhabricatorExtendingPhabricatorConfigOptions' => 'PhabricatorApplicationConfigOptions', 2106 2108 'PhabricatorFacebookConfigOptions' => 'PhabricatorApplicationConfigOptions', 2107 2109 'PhabricatorFactAggregate' => 'PhabricatorFactDAO', 2108 2110 'PhabricatorFactChartController' => 'PhabricatorFactController',
+43
src/applications/config/option/PhabricatorExtendingPhabricatorConfigOptions.php
··· 1 + <?php 2 + 3 + final class PhabricatorExtendingPhabricatorConfigOptions 4 + extends PhabricatorApplicationConfigOptions { 5 + 6 + public function getName() { 7 + return pht("Extending Phabricator"); 8 + } 9 + 10 + public function getDescription() { 11 + return pht("Make Phabricator even cooler!"); 12 + } 13 + 14 + public function getOptions() { 15 + return array( 16 + $this->newOption('load-libraries', 'list<string>', null) 17 + ->setSummary(pht("Paths to additional phutil libraries to load.")) 18 + ->addExample('/srv/our-sekrit-libs/sekrit-phutil', 'Valid Setting'), 19 + $this->newOption('events.listeners', 'list<string>', null) 20 + ->setSummary( 21 + pht("Listeners receive callbacks when interesting things occur.")) 22 + ->setDescription( 23 + pht( 24 + "You can respond to various application events by installing ". 25 + "listeners, which will receive callbacks when interesting things ". 26 + "occur. Specify a list of classes which extend ". 27 + "PhabricatorEventListener here.")) 28 + ->addExample('MyEventListener', 'Valid Setting'), 29 + $this->newOption( 30 + 'celerity.resource-path', 31 + 'string', 32 + '__celerity_resource_map__.php') 33 + ->setSummary( 34 + pht("Custom celerity resource map.")) 35 + ->setDescription( 36 + pht( 37 + "Path to custom celerity resource map relative to ". 38 + "'phabricator/src'. See also `scripts/celerity_mapper.php`.")) 39 + ->addExample('local/my_celerity_map.php', 'Valid Setting'), 40 + ); 41 + } 42 + 43 + }