From 60a34179c904847c8da09acca4b0774c5fc8bd5e Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 5 Oct 2018 12:55:45 +0200 Subject: Remove deprecated publishActivity function Signed-off-by: Roeland Jago Douma --- lib/private/Activity/Manager.php | 25 ------------------------- lib/public/Activity/IManager.php | 16 ---------------- 2 files changed, 41 deletions(-) (limited to 'lib') diff --git a/lib/private/Activity/Manager.php b/lib/private/Activity/Manager.php index 1b64fa59a91..9e70b6f465a 100644 --- a/lib/private/Activity/Manager.php +++ b/lib/private/Activity/Manager.php @@ -197,31 +197,6 @@ class Manager implements IManager { } } - /** - * @param string $app The app where this event is associated with - * @param string $subject A short description of the event - * @param array $subjectParams Array with parameters that are filled in the subject - * @param string $message A longer description of the event - * @param array $messageParams Array with parameters that are filled in the message - * @param string $file The file including path where this event is associated with - * @param string $link A link where this event is associated with - * @param string $affectedUser Recipient of the activity - * @param string $type Type of the notification - * @param int $priority Priority of the notification - */ - public function publishActivity($app, $subject, $subjectParams, $message, $messageParams, $file, $link, $affectedUser, $type, $priority) { - $event = $this->generateEvent(); - $event->setApp($app) - ->setType($type) - ->setAffectedUser($affectedUser) - ->setSubject($subject, $subjectParams) - ->setMessage($message, $messageParams) - ->setObject('', 0, $file) - ->setLink($link); - - $this->publish($event); - } - /** * In order to improve lazy loading a closure can be registered which will be called in case * activity consumers are actually requested diff --git a/lib/public/Activity/IManager.php b/lib/public/Activity/IManager.php index 2ccb4c6592f..90959a57099 100644 --- a/lib/public/Activity/IManager.php +++ b/lib/public/Activity/IManager.php @@ -70,22 +70,6 @@ interface IManager { */ public function publish(IEvent $event); - /** - * @param string $app The app where this event is associated with - * @param string $subject A short description of the event - * @param array $subjectParams Array with parameters that are filled in the subject - * @param string $message A longer description of the event - * @param array $messageParams Array with parameters that are filled in the message - * @param string $file The file including path where this event is associated with - * @param string $link A link where this event is associated with - * @param string $affectedUser Recipient of the activity - * @param string $type Type of the notification - * @param int $priority Priority of the notification - * @since 6.0.0 - * @deprecated 8.2.0 Grab an IEvent from generateEvent() instead and use the publish() method - */ - public function publishActivity($app, $subject, $subjectParams, $message, $messageParams, $file, $link, $affectedUser, $type, $priority); - /** * In order to improve lazy loading a closure can be registered which will be called in case * activity consumers are actually requested -- cgit v1.2.3