summaryrefslogtreecommitdiffstats
path: root/lib/private/Hooks
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-11 10:04:36 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-11 10:04:36 +0100
commit723f017b125fe599219f98f5e15622c329acec1f (patch)
tree112ee58e0ca7fd103d8afec37a003df26baae83a /lib/private/Hooks
parent68d59915d6084c92799c22196012e32f7bb12be4 (diff)
downloadnextcloud-server-723f017b125fe599219f98f5e15622c329acec1f.tar.gz
nextcloud-server-723f017b125fe599219f98f5e15622c329acec1f.zip
Deprecate hooks, emitter and Symfony dispatcher mechanisms
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Hooks')
-rw-r--r--lib/private/Hooks/BasicEmitter.php3
-rw-r--r--lib/private/Hooks/Emitter.php1
-rw-r--r--lib/private/Hooks/PublicEmitter.php3
3 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Hooks/BasicEmitter.php b/lib/private/Hooks/BasicEmitter.php
index 529f3724d32..37c38b4be1d 100644
--- a/lib/private/Hooks/BasicEmitter.php
+++ b/lib/private/Hooks/BasicEmitter.php
@@ -23,6 +23,9 @@
namespace OC\Hooks;
+/**
+ * @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher
+ */
abstract class BasicEmitter implements Emitter {
use EmitterTrait;
}
diff --git a/lib/private/Hooks/Emitter.php b/lib/private/Hooks/Emitter.php
index fbe1a8eaf1f..65c99f2b94d 100644
--- a/lib/private/Hooks/Emitter.php
+++ b/lib/private/Hooks/Emitter.php
@@ -30,6 +30,7 @@ namespace OC\Hooks;
* interface for all classes that are able to emit events
*
* @package OC\Hooks
+ * @deprecated 18.0.0 use events and the \OCP\EventDispatcher\IEventDispatcher service
*/
interface Emitter {
/**
diff --git a/lib/private/Hooks/PublicEmitter.php b/lib/private/Hooks/PublicEmitter.php
index 4101fd12349..abb4dedd667 100644
--- a/lib/private/Hooks/PublicEmitter.php
+++ b/lib/private/Hooks/PublicEmitter.php
@@ -24,6 +24,9 @@
namespace OC\Hooks;
+/**
+ * @deprecated 18.0.0 use events and the \OCP\EventDispatcher\IEventDispatcher service
+ */
class PublicEmitter extends BasicEmitter {
/**
* @param string $scope