summaryrefslogtreecommitdiffstats
path: root/extensions/Ember/Extension.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-09-10 19:43:03 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-09-10 19:43:03 +0200
commit196782cb0c28322b6325f9415f3cdf2f25fc7c0d (patch)
treef15f71e43e4eaf28547613977efcb268a18d77f4 /extensions/Ember/Extension.pm
parentcb38e8c889a2f315e023b3fb3e657a3a5a509356 (diff)
downloadbugzilla-196782cb0c28322b6325f9415f3cdf2f25fc7c0d.tar.gz
bugzilla-196782cb0c28322b6325f9415f3cdf2f25fc7c0d.tar.xz
Bug 904988 - create an ember extension with bespoke methods
r=glob
Diffstat (limited to 'extensions/Ember/Extension.pm')
-rw-r--r--extensions/Ember/Extension.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/extensions/Ember/Extension.pm b/extensions/Ember/Extension.pm
new file mode 100644
index 000000000..1c8b8b4e9
--- /dev/null
+++ b/extensions/Ember/Extension.pm
@@ -0,0 +1,22 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::Ember;
+
+use 5.10.1;
+use strict;
+use parent qw(Bugzilla::Extension);
+
+our $VERSION = '0.01';
+
+sub webservice {
+ my ($self, $args) = @_;
+ my $dispatch = $args->{dispatch};
+ $dispatch->{Ember} = "Bugzilla::Extension::Ember::WebService";
+}
+
+__PACKAGE__->NAME;