aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/hooks/legacyemitter.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/hooks/legacyemitter.php')
-rw-r--r--lib/private/hooks/legacyemitter.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/hooks/legacyemitter.php b/lib/private/hooks/legacyemitter.php
new file mode 100644
index 00000000000..a2d16ace9a7
--- /dev/null
+++ b/lib/private/hooks/legacyemitter.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OC\Hooks;
+
+abstract class LegacyEmitter extends BasicEmitter {
+ protected function emit($scope, $method, $arguments = array()) {
+ \OC_Hook::emit($scope, $method, $arguments);
+ parent::emit($scope, $method, $arguments);
+ }
+}