diff --git a/src/applications/celerity/CelerityStaticResourceResponse.php b/src/applications/celerity/CelerityStaticResourceResponse.php index e710e5121d..0d4fafdfd7 100644 --- a/src/applications/celerity/CelerityStaticResourceResponse.php +++ b/src/applications/celerity/CelerityStaticResourceResponse.php @@ -40,7 +40,7 @@ final class CelerityStaticResourceResponse { public function initBehavior( $behavior, array $config = array(), - $source_name = 'phabricator') { + $source_name) { $this->requireResource('javelin-behavior-'.$behavior, $source_name); diff --git a/src/infrastructure/javelin/Javelin.php b/src/infrastructure/javelin/Javelin.php index 922cd45e83..0e8c86fc6b 100644 --- a/src/infrastructure/javelin/Javelin.php +++ b/src/infrastructure/javelin/Javelin.php @@ -2,9 +2,14 @@ final class Javelin { - public static function initBehavior($behavior, array $config = array()) { + public static function initBehavior( + $behavior, + array $config = array(), + $source_name = 'phabricator') { + $response = CelerityAPI::getStaticResourceResponse(); - $response->initBehavior($behavior, $config); + + $response->initBehavior($behavior, $config, $source_name); } }