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

Allow Javelin initBehavior to source alternative library behaviors

Summary: Ref T6467. Opens up initBehavior for non-phabricator sourced behaviors.

Test Plan: Confirmed no impact on unset (default 'phabricator' source name) calls to initBehavior

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: aklapper, Korvin, epriestley

Maniphest Tasks: T6467

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

authored by

Christopher Johnson and committed by
epriestley
5b490e98 000760b6

+8 -3
+1 -1
src/applications/celerity/CelerityStaticResourceResponse.php
··· 40 40 public function initBehavior( 41 41 $behavior, 42 42 array $config = array(), 43 - $source_name = 'phabricator') { 43 + $source_name) { 44 44 45 45 $this->requireResource('javelin-behavior-'.$behavior, $source_name); 46 46
+7 -2
src/infrastructure/javelin/Javelin.php
··· 2 2 3 3 final class Javelin { 4 4 5 - public static function initBehavior($behavior, array $config = array()) { 5 + public static function initBehavior( 6 + $behavior, 7 + array $config = array(), 8 + $source_name = 'phabricator') { 9 + 6 10 $response = CelerityAPI::getStaticResourceResponse(); 7 - $response->initBehavior($behavior, $config); 11 + 12 + $response->initBehavior($behavior, $config, $source_name); 8 13 } 9 14 10 15 }