aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Bootstrap
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-06-17 15:17:59 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-06-19 10:38:26 +0200
commit2b7b7144d44cdb323039d8384f7a94fc6422e923 (patch)
tree6eada54697fa843a7d3de8d19e3b672d79877220 /lib/public/AppFramework/Bootstrap
parentdd0b9655b2dc72556f0a273f262357f5b058fe49 (diff)
downloadnextcloud-server-2b7b7144d44cdb323039d8384f7a94fc6422e923.tar.gz
nextcloud-server-2b7b7144d44cdb323039d8384f7a94fc6422e923.zip
Allow crash reporters registration during app bootstrap
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/AppFramework/Bootstrap')
-rw-r--r--lib/public/AppFramework/Bootstrap/IRegistrationContext.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
index 589b5def5a8..5d3ffc8d479 100644
--- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
+++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
@@ -46,6 +46,16 @@ interface IRegistrationContext {
public function registerCapability(string $capability): void;
/**
+ * Register an implementation of \OCP\Support\CrashReport\IReporter that
+ * will receive unhandled exceptions and throwables
+ *
+ * @param string $reporterClass
+ * @return void
+ * @since 20.0.0
+ */
+ public function registerCrashReporter(string $reporterClass): void;
+
+ /**
* Register a service
*
* @param string $name