Permalink
Browse files

Update Phabricator-JIRA to work with newer event subsystem

Test Plan: Used it with Phabricator, libphutil and Arcanist trunk and it worked.

Reviewers: jsichi

Reviewed By: jsichi

CC: jsichi

Differential Revision: 465
  • Loading branch information...
1 parent d3f9f93 commit 3b3bbfe4b6b8cbae3501fc9df9daa73e7dd19053 @mareksapota-fb mareksapota-fb committed Nov 17, 2011
Showing with 7 additions and 6 deletions.
  1. +1 −1 .arcconfig
  2. +1 −1 .phutil_module_cache
  3. +1 −1 __phutil_library_map__.php
  4. +2 −2 src/JIRAMailListener.php
  5. +2 −1 src/__init__.php
View
@@ -1,5 +1,5 @@
{
- "project_id" : "arcjira",
+ "project_id" : "phabricatorjira",
"conduit_uri" : "https://reviews.facebook.net/",
"copyright_holder" : "Facebook",
"lint_engine" : "PhutilLintEngine",
@@ -1 +1 @@
-{"src":{"signature":"68bb41a0f7b4f90e6568bdc6989c3db8","spec":{"declares":{"class":{"JIRAMailListener":"JIRAMailListener.php:604"},"interface":[],"function":[],"source":{"JIRAMailListener.php":true}},"requires":{"class":{"PhabricatorEventListener":["JIRAMailListener.php:629"],"PhabricatorEventType":["JIRAMailListener.php:705"]},"interface":[],"function":[],"source":{"JIRAMailListener.php":["__init__.php:255"]},"module":{"phabricator:infrastructure\/events\/listener":["__init__.php:104"],"phabricator:infrastructure\/events\/constant\/type":["__init__.php:176"]}},"chain":{"class":{"JIRAMailListener":"PhabricatorEventListener"}},"messages":[]}}}
+{"src":{"signature":"ed4295e9944d1a6b804785503d0a7f60","spec":{"declares":{"class":{"JIRAMailListener":"JIRAMailListener.php:604"},"interface":[],"function":[],"source":{"JIRAMailListener.php":true}},"requires":{"class":{"PhutilEventListener":["JIRAMailListener.php:629"],"PhabricatorEventType":["JIRAMailListener.php:700"]},"interface":[],"function":[],"source":{"JIRAMailListener.php":["__init__.php:236"]},"module":{"phabricator:infrastructure\/events\/constant\/type":["__init__.php:104"],"phutil:events\/listener":["__init__.php:182"]}},"chain":{"class":{"JIRAMailListener":"PhutilEventListener"}},"messages":[]}}}
@@ -15,7 +15,7 @@
),
'requires_class' =>
array(
- 'JIRAMailListener' => 'PhabricatorEventListener',
+ 'JIRAMailListener' => 'PhutilEventListener',
),
'requires_interface' =>
array(
@@ -16,12 +16,12 @@
* limitations under the License.
*/
-class JIRAMailListener extends PhabricatorEventListener {
+class JIRAMailListener extends PhutilEventListener {
public function register() {
$this->listen(PhabricatorEventType::TYPE_DIFFERENTIAL_WILLSENDMAIL);
}
- public function handleEvent(PhabricatorEvent $event) {
+ public function handleEvent(PhutilEvent $event) {
$mail = $event->getValue('mail');
$subject = $mail->getSubject();
$match = null;
View
@@ -6,8 +6,9 @@
-phutil_require_module('phabricator', 'infrastructure/events/listener');
phutil_require_module('phabricator', 'infrastructure/events/constant/type');
+phutil_require_module('phutil', 'events/listener');
+
phutil_require_source('JIRAMailListener.php');

0 comments on commit 3b3bbfe

Please sign in to comment.